Usuário:Stegop/common.js
Aspeto
Nota: Depois de publicar, poderá ter de contornar a cache do seu navegador para ver as alterações.
- Firefox / Safari: Pressione Shift enquanto clica Recarregar, ou pressione Ctrl-F5 ou Ctrl-R (⌘-R no Mac)
- Google Chrome: Pressione Ctrl-Shift-R (⌘-Shift-R no Mac)
- Edge: Pressione Ctrl enquanto clica Recarregar, ou pressione Ctrl-F5.
//Mass rollback function
//Written by John254 and modified/rewritten by Writ Keeper; original is at https://en.wikipedia.org/wiki/User:John254/mass_rollback.js
//Adapted from User:Mr.Z-man/rollbackSummary.js
//Instructions: Selecting the "rollback all" tab when viewing a user's contributions history
//will open all rollback links displayed there. (Use with caution)
function rollbackEverythingWKMR(e) {
e.preventDefault();
$("a[href*='action=rollback']").each(function(ind, el)
{
window.open(el.href, "_blank");
});
}
$(function()
{
if(mw.config.get("wgCanonicalSpecialPageName") === "Contributions" && $("span.mw-rollback-link").length > 0)
{
$( mw.util.addPortletLink('p-cactions', '#', "rollback all", "ca-rollbackeverything", "rollback all edits displayed here") )
.click( rollbackEverythingWKMR );
}
});
// Provides several usefull functions for rollback (custom edit summary, mark as bot edits and mass revert)
// by [[m:user:Hoo man]] <https://meta.wikimedia.org/wiki/User:Hoo_man/smart_rollback.js>
// [[File:Hoo man/smart_rollback.js]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/smart_rollback.js&action=raw&ctype=text/javascript');
/**
* Ferramenta de categorização em massa (cat-a-lot)
*/
/* Autor: [[w:en:User:קיפודנחש/cat-a-lot.js|קיפודנחש]] */
//mw.loader.load( 'en:User:קיפודנחש/cat-a-lot.js' );
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:קיפודנחש/cat-a-lot.js&action=raw&ctype=text/javascript');