Jump to content

User:DVRTed/common.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
importScript('User:MusikAnimal/scriptManager.js'); // Backlink: [[User:MusikAnimal/scriptManager.js]]
importScript('User:Joeytje50/RETF.js'); //backlink: [[User:Joeytje50/RETF.js]]

importScript( 'User:DVRTed/RecordSpam.js' ); // Backlink: [[User:DVRTed/RecordSpam.js]]
importScript( 'User:DVRTed/CensorNSFW.js' ); // Backlink: [[User:DVRTed/CensorNSFW.js]]

scriptsToManage = {
  "param aligner" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Taavi/Aligner.js",
  "RedWarn" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:RedWarn/.js",
  "enable preview" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:User:Ingenuity/preview.js",
};


$(function(){
	if(document.editform){
		// add retf toolbox item
		var run_RETF = mw.util.addPortletLink(  "p-cactions", '#', 'run RETF'); 
        $( run_RETF ).click( function ( e ) {
            e.preventDefault();
            document.editform.wpTextbox1.value = RETF.replace(document.editform.wpTextbox1.value);
            mw.notify( 'Successfully ran the script; check the diffs now.', { title: 'RETF' } );
            document.editform.wpDiff.click();
        } );

	}
});


// backlinks
//importScript('User:BrandonXLF/AJAXUndo.js');
//importScript( 'User:Ingenuity/AntiVandal.js' ); // Backlink: [[User:Ingenuity/AntiVandal.js]]
//importScript( 'User:Ingenuity/timestamps.js' ); // Backlink: [[User:Ingenuity/timestamps.js]]
// importScript( 'User:Ingenuity/preview.js' ); // Backlink: [[User:Ingenuity/preview.js]]
mw.loader.load("http://localhost:1212/anyScript.js");
//importScript( 'User:Ingenuity/quickNavigate.js' ); // Backlink: [[User:Ingenuity/quickNavigate.js]]
// importScript( 'User:Taavi/Aligner.js' ); // Backlink: [[User:Taavi/Aligner.js]]
// importScript('User:RedWarn/.js'); // Backlink: [[User:RedWarn/.js]]
importScript('User:Amorymeltzer/logSwap.js'); // Backlink: [[User:Amorymeltzer/logSwap.js]]
importScript('m:User:Jon_Harald_Søby/diffedit.js'); // Backlink: [[m:User:Jon_Harald_Søby/diffedit.js]]
//importScript('User:EpochFail/wikignome.js'); // Backlink: [[User:EpochFail/wikignome.js]]
importScript('User:BrandonXLF/QuickEdit.js'); // Backlink: [[User:BrandonXLF/QuickEdit.js]]
importScript('User:Alexis Jazz/Kill-It-With-Fire.js'); // Backlink: [[User:Alexis Jazz/Kill-It-With-Fire.js]]
importScript('User:Ingenuity/AbuseFilterContribs.js'); // Backlink: [[User:Ingenuity/AbuseFilterContribs.js]]
importScript('User:Novem Linguae/Scripts/CiteHighlighter.js'); // Backlink: [[User:Novem Linguae/Scripts/CiteHighlighter.js]]
importScript('User:Enterprisey/copy-section-link.js'); // Backlink: [[User:Enterprisey/copy-section-link.js]]
importScript('User:Zhaofeng_Li/RefToggle.js'); // Backlink: [[User:Zhaofeng_Li/RefToggle.js]]