User:Anonymous Dissident/common.js
Appearance
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
// *****************************************************************
// Load various external scripts
// *****************************************************************
mw.loader.load('//www.wikia.com/index.php?title=User:Splarka/fastdelete.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Zocky/SearchBox.js&action=raw&ctype=text/javascript');
// *****************************************************************
// Custom automatic delete buttons
// *****************************************************************
// Adds customizable one-click deletion buttons to any deletable page.
// Requires w:User:Splarka/fastdelete.js in appendScript();
var fdButtons = [
{
'summary': '[[uncyclopedia:nobody cares|nobody cares]]',
'label': 'UN:N'
},
{
'summary': 'Test, please use the [[sandbox]]',
'label': 'test'
},
{
'summary': 'Please read [[About this site]]',
'label': 'site'
},
{
'summary': 'Author/User Request',
'label': 'req'
}
];
/**
* TemplateScript adds configurable templates and scripts to the sidebar, and adds an example regex editor.
* @see https://meta.wikimedia.org/wiki/TemplateScript
* @update-token [[File:pathoschild/templatescript.js]]
*/
// <nowiki>
$.ajax('//tools-static.wmflabs.org/meta/scripts/pathoschild.templatescript.js', { dataType:'script', cache:true }).then(function() {
pathoschild.TemplateScript.add([
{ name:'T', template:'{{subst:test|1=}}--~~~~', editSummary:'{{Test}}' },
{ name:'encyc', template:'{{subst:not an encyclopedia|1=}}--~~~~', editSummary:'{{not an encyclopedia}}' },
{ name:'non', template:'{{subst:nonsense|1=}}--~~~~', editSummary:'{{nonsense}}' }
]);
});
// </nowiki>