User:DatGuy/common.js
mw.hook('start.ready').add(start => {
const action = mw.config.get('wgAction');
const diff = mw.config.get('wgDiffNewId') && mw.config.get('wgDiffOldId');
const ns = mw.config.get('wgNamespaceNumber');
const page = mw.config.get('wgPageName').replaceAll('_', ' ');
const special = mw.config.get('wgCanonicalSpecialPageName');
if (action === 'edit') {
start.load('[[User:Js/ajaxPreview.js]]');
}
if (action === 'history') {
start.load('[[User:Gary/highlight my username in history.js]]');
start.load('[[User:Enterprisey/url-select-revdel.js]]');
}
if (action !== 'watchlist') {
start.load('[[User:Aaron Liu/Watchlyst Greybar Unsin.js]]');
}
if (action === 'history' || diff || ['Contributions', 'DeletedContributions', 'Recentchanges', 'Undelete', 'Watchlist'].includes(special)) {
start.load('[[User:Daniel Quinlan/Scripts/Unfiltered.js]]');
}
if (diff) {
start.load('[[User:Nardog/SmartDiff.js]]');
}
if ([0, 1, 2].includes(ns)) {
start.load('[[User:Nardog/MoveHistory.js]]');
}
if (ns === 0) {
start.load('[[User:Ais523/stubtagtab2.js]]');
}
if ([0, 118].includes(ns)) {
start.load('[[User:Novem Linguae/Scripts/CiteHighlighter.js]]');
}
if ([0, 1, 118, 119].includes(ns)) {
start.load('[[User:Evad37/rater.js]]');
}
if ([2, 3].includes(ns)) {
start.load('[[User:PleaseStand/userinfo.js]]');
start.load('[[User:Mr. Stradivarius/gadgets/SpamUserPage.js]]');
}
if (ns % 2 === 1 || ns == 4) {
start.load('[[User:Pythoncoder/voteSymbols.js]]');
start.load('[[User:DaxServer/DiscussionCloser.js]]');
start.load('[[User:Novem Linguae/Scripts/VoteCounter.js]]');
start.load('[[User:Awesome Aasim/discussiontoolswordcount.js]]');
}
if (ns % 2 === 1) {
start.load('[[User:Jackmcbarn/editProtectedHelper.js]]');
if (mw.config.get('wgCategories').includes('Requested moves')) {
start.load('[[User:TheTVExpert/rmCloser.js]]');
}
}
if (ns === 3) {
start.load('[[User:Enterprisey/unblock-review.js]]');
start.load('[[User:Bellezzasolo/Scripts/arb.js]]');
}
if ([-1, 4, 14].includes(ns)) {
start.load('[[User:Daniel Quinlan/Scripts/SockDecay.js]]');
}
if (ns === 4) {
start.load('[[User:MusikAnimal/responseHelper.js]]');
}
if ([-1, 2, 3].includes(ns)) {
start.load('[[User:DatGuy/twinkle-config.js]]');
}
if (page.startsWith('Wikipedia:Articles for deletion/')) {
start.load('[[User:Enterprisey/delsort.js]]');
}
if (page.startsWith('Wikipedia:Bots/')) {
start.load('[[User:Enterprisey/easy-brfa.js]]');
}
if (page.startsWith('Wikipedia:Sockpuppet investigations/')) {
start.load('[[User:Daniel Quinlan/Scripts/SockTags.js]]');
}
if (page.startsWith('Wikipedia:Requests for permissions/')) {
start.load('[[User:MusikAnimal/userRightsManager.js]]');
}
if (['Watchlist', 'Recentchanges', 'Contributions', 'Recentchangeslinked'].includes(special) || action === 'history') {
inspectText = "+";
showText = "+";
hideText = "-";
start.load('[[User:Writ Keeper/Scripts/commonHistory.js]]');
}
if (special === 'AbuseFilter') {
start.load('[[User:Suffusion of Yellow/batchtest-plus-core.js]]');
start.load('[[User:Suffusion of Yellow/filterNotes.js]]');
}
if (['Blankpage', 'AbuseFilter', 'AbuseLog'].includes(special)) {
start.load('[[User:Suffusion of Yellow/FilterDebugger.js]]');
}
if (special === 'Contributions') {
start.load('[[User:Writ Keeper/Scripts/massRollback.js]]');
start.load('[[User:Writ Keeper/Scripts/massRevdel.js]]');
}
if (['Blankpage', 'Contributions', 'IPContributions', 'Log'].includes(special) || ns === 3) {
start.load('[[User:Daniel Quinlan/Scripts/RangeHelper.js]]');
}
if (special === 'CheckUser') {
start.load('[[User:Dbeef/cplus.js]]');
}
if (special === 'CheckUserLog') {
start.load('[[User:Amalthea/culoghelper.js]]');
}
if (!mw.config.get('wgCurRevisionId')) {
start.load('[[User:SD0001/quickViewDeleted.js]]');
}
if (mw.config.get('wgPageName').includes('Wikipedia:Sockpuppet_investigations/')
|| mw.config.get('wgCanonicalSpecialPageName') === 'CheckUser'
|| mw.config.get('wgCanonicalSpecialPageName') === 'SuggestedInvestigations'
|| (
mw.config.get('wgNamespaceNumber') === 14
&& ['Suspected Wikipedia sockpuppets', 'Wikipedia sockpuppets'].some(cat => mw.config.get('wgCategories').includes(cat))
)) {
// start.load('[[User:DatGuy/spihelper-dev.js]]');
window.oldMwLoaderLoad('//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:DatGuy/spihelper.dev.js');
}
// Might compartmentalise these ones later
start.load('[[User:Writ Keeper/Scripts/deletionFinder.js]]');
start.load('[[User:Suffusion of Yellow/filter-highlighter.js]]');
start.load('[[User:GeneralNotability/InvestorGoat.js]]');
// mw.loader.load('//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Bellezzasolo/Scripts/subpages.js'); //Linkback: [[User:Bellezzasolo/Scripts/subpages.js]] Added by Script installer
// mw.loader.load('//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:GeneralNotability/cumarkips.js'); // Marks off-limit IPs
});
// Add link to Bullseye through MoreMenu
$(function () {
mw.hook('moremenu.ready').add(function (config) {
const isIP = mw.util.isIPAddress(config.targetUser.name, false);
if (isIP) {
MoreMenu.addSubmenuLink('user', 'ip-lookup', 'Bullseye', 'https://bullseye.toolforge.org/ip/' + config.targetUser.encodedName);
const whoisUrl = `https://apps.db.ripe.net/db-web-ui/query?` + new URLSearchParams({
searchtext: config.targetUser.name,
});
MoreMenu.addSubmenuLink('user', 'ip-lookup', 'WHOIS RIPE', whoisUrl);
}
});
});
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.