User:Jethro B/common.js: Difference between revisions

Content deleted Content added
No edit summary
m Maintenance: Replacing addPortletLink() with mw.util.addPortletLink() (mw:ResourceLoader/Migration_guide_(users)#addPortletLink)
 
(5 intermediate revisions by 2 users not shown)
Line 1:
importScript('User:Porchcorpter/rollback.js');
 
importScript('User:Equazcion/SidebarHistoryTools.js');
 
importScript('User:Kephir/gadgets/rater.js'); // [[User:Kephir/gadgets/rater]]
 
importScript('User:Ohconfucius/script/Common Terms.js'); //[[User:Ohconfucius/script/Common Terms.js]]
 
importScript('User:Ohconfucius/script/MOSNUM dates.js'); //[[User:Ohconfucius/script/MOSNUM dates.js]]
Line 12 ⟶ 16:
 
importScript('User:Amalthea/userhighlighter.js');
 
importScript("User:GregU/dashes.js");
 
importScript('User:TheJosh/Scripts/NewPagePatrol.js');
Line 20 ⟶ 26:
var hasRollback = getElementsByClassName(document, "span", "mw-rollback-link");
if (hasRollback[0] && (document.title.indexOf("User contributions") != -1) ) {
mw.util.addPortletLink('p-cactions', 'javascript:rollbackEverything()', "rollback all", "ca-rollbackeverything", "rollback all edits displayed here");
}
}
addOnloadHook$(rollbackEverythingButton);
function rollbackEverything() {
for (var i in document.links) {