Scripts:Up2date: Difference between revisions

no edit summary
mNo edit summary
 
No edit summary
Line 2: Line 2:


You have to edit the first rows manually to change what is hidden. It is pretty easy though. Just add/remove entries in the lists (hideGroups,hideEpTypes) at the top. Save it as <something>.user.js.
You have to edit the first rows manually to change what is hidden. It is pretty easy though. Just add/remove entries in the lists (hideGroups,hideEpTypes) at the top. Save it as <something>.user.js.
'''Updated 2007-01-10. A few minor changes to get it to work with the new up2pate page version. '''


<pre>
<pre>
Line 25: Line 27:
function()
function()
{
{
   t1 = document.getElementById('layout-content').
   t1 = document.body.getElementsByTagName('tr');
        getElementsByTagName('table')[0].
        getElementsByTagName('tbody')[0].
        getElementsByTagName('tr');


     for(i=1;i<t1.length;i++)
     for(i=1;i<t1.length;i++)
Line 36: Line 35:
       for(j=0;j<t2.length;j++)
       for(j=0;j<t2.length;j++)
       {
       {
         if (t2[j].className == 'group')   
         if (t2[j].className == 'name group')   
         {
         {
           groupName = TrimString(t2[j].textContent);
           groupName = TrimString(t2[j].textContent);
Line 48: Line 47:
         }
         }
              
              
         if(t2[j].className == 'ep')  
         if(t2[j].className == 'epno')  
         {
         {
           epType = t2[j].textContent.charAt(0); // First character)
           epType = t2[j].textContent.charAt(0); // First character)
2

edits

MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.