User:Varnent/common.js
Jump to navigation
Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
The accompanying .css page for this skin can be added at User:Varnent/common.css. |
//catALot///////////////////////////////////////
////////// Cat-a-lot user preferences //////////
window.catALotPrefs = {"disambig_category":"Disambiguation","redir_category":"Category redirects","watchlist":"nochange","minor":true,"editpages":true,"docleanup":false,"subcatcount":50,"uncat":true,"button":true};
////////////////////////////////////catALotEnd//
/**
* TemplateScript adds configurable templates and scripts to the sidebar, and adds an example regex editor.
* @see https://meta.wikimedia.org/wiki/TemplateScript
*/
// <pre>
$.getScript('//tools.wmflabs.org/meta/scripts/pathoschild.templatescript.js', function() {
pathoschild.TemplateScript.Add([
{
name: 'LGBTcollective tagging - Tom',
forActions: 'edit',
forNamespaces: 2,
script: function() {
$('#wpTextbox1').val($('#wpTextbox1').val().replace(/{{cc-by-sa-3.0}}/g,'{{LGBTcollective|user=Tom Morris}} {{cc-by-sa-3.0}}'));
$('#wpSummary').val('Added LGBTcollective tag');
$('#wpMinoredit').attr('checked', true);
$('#wpSave').click();
}
}
]);
});