User:SD0001/UnassessedArticleLinks.js
(Redirected from User:SD0001/UNBIO-article-links.js)
/** * Simple script to manipulate links to the talk pages at unassessed article category pages, such as * [[:Category:Unassessed biography articles]] or [[:Category:Unknown-importance cricket articles]] * so that they * - point straight to the articles * - get opened in a new tab by default * - redirect is not followed * - Evad37's Rater is opened automatically on the article */$.when(mw.loader.using('mediawiki.util'), $.ready).then(function() {if (mw.config.get('wgPageName').indexOf('Category:Unassessed') === 0 || mw.config.get('wgPageName').indexOf('Category:Unknown-importance') === 0) {$('.mw-category ul li a').each(function(i,e) { e.href = e.href.replace('/wiki/Talk:', '/wiki/').replace(/$/, '?redirect=no&autostartrater=y'); e.target = '_blank';});}setTimeout(function() {if (mw.util.getParamValue('autostartrater')) {$('#ca-rater').click();}}, 1000);});
🔥 Top keywords: Main PageSpecial:SearchWikipedia:Featured picturesYasukeHarrison ButkerRobert FicoBridgertonCleopatraDeaths in 2024Joyce VincentXXXTentacionHank AdamsIt Ends with UsYouTubeNew Caledonia2024 Indian general electionHeeramandiDarren DutchyshenSlovakiaKingdom of the Planet of the ApesAttempted assassination of Robert FicoLawrence WongBaby ReindeerXXX: Return of Xander CageThelma HoustonFuriosa: A Mad Max SagaMegalopolis (film)Richard GaddKepler's SupernovaWicked (musical)Sunil ChhetriXXX (2002 film)Ashley MadisonAnya Taylor-JoyPlanet of the ApesNava MauYoung SheldonPortal:Current eventsX-Men '97