User:Doork/global.js

/* Scripts */ importScriptPage('User:Doork/Doork-code','doork'); /* I'm not interested. */ $('.featured-video-wrapper').remove; $('#top-right-boxad-wrapper').remove; $('#WikiaTopAds').remove; $('#WikiaAdInContentPlaceHolder').remove; $('.page-header__categories').remove; $('.discussions-rail-theme').remove; /* Global ChatJS */ importArticles({   type: 'script',    articles: [        'u:dev:GlobalChatJS.js',    ] }); function jqueryImport{ var jquery = document.createElement('script'); jquery.setAttribute('src','https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js'); document.head.appendChild(jquery); }

function noAdsMainPage{ jqueryImport; $('#top-right-boxad-wrapper').remove; $('#WikiaTopAds').remove; }

if(wgIsMainPage){ setInterval(noAdsMainPage,5000); }