Content deleted Content added
add |
m Maintenance: Replacing addPortletLink() with mw.util.addPortletLink() (mw:ResourceLoader/Migration_guide_(users)#addPortletLink) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 4:
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 14 ⟶ 16:
importScript('User:Amalthea/userhighlighter.js');
importScript("User:GregU/dashes.js");
importScript('User:TheJosh/Scripts/NewPagePatrol.js');
Line 22 ⟶ 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");
}
}
function rollbackEverything() {
for (var i in document.links) {
|