Widget:MoveListTrimmer: Difference between revisions

From Elwiki
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly><script>
<includeonly><script>
$(function(){
$(function(){
     $('#content h2').nextUntil('h2', 'table, ul').each(function(){
     $('#content h2').nextUntil('h2', 'ul#mw-whatlinkshere-list').each(function(){
         $(this).prev('h2').addClass('persist');
         $(this).prev('h2').addClass('persist');
    });
    $('#content h2').nextUntil('h2', 'table.mw-prefixindex-list-table').each(function(){
        var t = $(this).prev('h2').text().replace('Subpages of ', '');
        if($(this).text().trim() == t){
            $(this).prev('h2').addClass('persist');
        }
     });
     });
     $('#content h2').not('.persist').remove();
     $('#content h2').not('.persist').remove();
});</script></includeonly>
});</script></includeonly>

Revision as of 15:27, 25 May 2015