MediaWiki:Gadget-autocollapse.js: Difference between revisions
Created page with "→* * Automatically collapsed navboxes under certain conditions: (function($, mw){ if ( !$('.navbox').length || mw.Uri().query.veaction != undefined ) return; mw.ho..." |
MigrationBot (talk | contribs) Replace deprecated mw.Uri usage in autocollapse gadget |
||
| Line 5: | Line 5: | ||
if ( | if ( | ||
!$('.navbox').length || | !$('.navbox').length || | ||
new URL( window.location.href ).searchParams.has( "veaction" ) | |||
) return; | ) return; | ||
mw.hook('wikipage.collapsibleContent').add(init); | mw.hook('wikipage.collapsibleContent').add(init); | ||