User:Codename Noreste/common.js: Difference between revisions

From Test Wiki
Jump to navigation Jump to search
Content deleted Content added
+ wikEd, another change to the all-in-one suffixes I use.
Update.
(30 intermediate revisions by 2 users not shown)
Line 1: Line 1:
// Selective Rollback ([[User:Dragoniez/Selective Rollback.js]])
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User%3ADragoniez%2FSelective%20Rollback.js&action=raw&ctype=text/javascript');
window.selectiveRollbackConfig = {
markBot: false,
watchPage: false,
watchExpiry: 'indefinite',
confirm: 'always',
mobileConfirm: 'always',
checkboxLabelColor: 'orange'
};
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AAnimum%2Fmassdelete.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ASuffusion_of_Yellow%2Fbatchtest-plus.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ASuffusion_of_Yellow%2FfilterDiff.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ASuffusion_of_Yellow%2FfilterDiff.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ASuffusion%20of%20Yellow%2Ffilter-highlighter.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ASuffusion of Yellow%2FfilterNotes.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ASuffusion_of_Yellow%2FfilterTest.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ASuffusion_of_Yellow%2FfilterTest.js&action=raw&ctype=text/javascript');
window.filterHighlighterConfig = {
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ASuffusion_of_Yellow%2Fbatchtest-plus.js&action=raw&ctype=text/javascript');
// If you find the default highlighting ugly, you can substitute your own stylesheet here
importScript('MediaWiki:Gadget-AllInOne.js'); // Backlink: [[MediaWiki:Gadget-AllInOne.js]]
// If you prefer no highlighting at all, use the empty string ("")
if (typeof(p4js_all_in_one) === 'undefined') p4js_all_in_one = {};
style : "User:Codename Noreste/filter-highlighter.css",
p4js_all_in_one.reasons = {

block: ["Vandalism", "Vandalism-only account", "Spamming links to external sites", "Spam-only account or spambot", "Intimidating behavior/harassment", "Long-term abuse", "{{blocked proxy}}"],
// Change this to true to highlight the entire [[Special:AbuseFilter/nnn]] page.
pagedelete: ["Unambiguous spam", "Complete vandalism", "Created by blocked user evading their block", "Not a translation"],
// Mostly intended for EFMs, as this will make it impossible to forget that
revisiondelete: ["Copyright violation", "Correction of a mistake in revision deletion", "Grossly insulting, degrading, or offensive material", "Potentially libelous information", "Purely disruptive material", "Other valid non-test deletion"],
// you're editing a filter that's set to disallow.
}
style_editor : true,
// You can select these suffixes to append to your block and (revision) delete rationales.

p4js_all_in_one.suffixes = ["", " (bureaucrat action)", " <!-- Bureaucrat action, but can be changed as a steward action if necessary. -->"];
// Show title text (tooltip). Set to false for the default "Special:AbuseFilter/123"
// install [[:Wikipedia:User:Cacycle/wikEd]] in-browser text editor
show_title: true,
(function ()

{
// Allow filter information to be up to this many seconds old.
var script = document.createElement('script');
// Set to a much larger value for slow connections. Set to 0 if you don't mind
script.src = 'https://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js&action=raw&ctype=text/javascript';
// downloading an extra 140K every time you visit a page that mentions filters
script.async = true;
cache_seconds : 30 * 60
document.getElementsByTagName('head')[0].appendChild(script);
}
};
) ();

Revision as of 21:52, 26 January 2025

// Selective Rollback ([[User:Dragoniez/Selective Rollback.js]])
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User%3ADragoniez%2FSelective%20Rollback.js&action=raw&ctype=text/javascript');
window.selectiveRollbackConfig = {
    markBot: false,
    watchPage: false,
    watchExpiry: 'indefinite',
    confirm: 'always',
    mobileConfirm: 'always',
    checkboxLabelColor: 'orange'
};
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AAnimum%2Fmassdelete.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ASuffusion_of_Yellow%2Fbatchtest-plus.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ASuffusion_of_Yellow%2FfilterDiff.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ASuffusion%20of%20Yellow%2Ffilter-highlighter.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ASuffusion of Yellow%2FfilterNotes.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ASuffusion_of_Yellow%2FfilterTest.js&action=raw&ctype=text/javascript');
window.filterHighlighterConfig = {
    // If you find the default highlighting ugly, you can substitute your own stylesheet here
    // If you prefer no highlighting at all, use the empty string ("")
    style : "User:Codename Noreste/filter-highlighter.css",

    // Change this to true to highlight the entire [[Special:AbuseFilter/nnn]] page.
    // Mostly intended for EFMs, as this will make it impossible to forget that
    // you're editing a filter that's set to disallow.
    style_editor : true,

    // Show title text (tooltip). Set to false for the default "Special:AbuseFilter/123"
    show_title: true,

    // Allow filter information to be up to this many seconds old.
    // Set to a much larger value for slow connections. Set to 0 if you don't mind
    // downloading an extra 140K every time you visit a page that mentions filters
    cache_seconds : 30 * 60
};