Jump to content

User:Skynxnex/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.
/* Disallow hitting "enter" in the edit summary box to actually submit. */
(function() {
	var submit_box = document.getElementById('wpSummary');
	if (submit_box) {
		submit_box.onkeypress = function(e) {
			if (e.charCode === 13) {
    			alert('Customized behavior; "enter" to publish turned off. Use "Publish page" to publish.');
    			e.preventDefault();
			}
		};
	}
})();

/* Hide logout button other than on the preferences pages */
(function() {
	if (document.location.href.indexOf("Special:Preferences") < 0) {
		var dl, ml;
		dl = document.getElementById("pt-logout");
		ml = document.getElementsByClassName("menu__item--logout");
		if (dl) {
			dl.style = "display: none";
		} 
		if (ml.length) {
			ml[0].style = "display: none";
		}
	}
})();

mw.loader.load( '/w/index.php?title=User:Evad37/rater.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Evad37/rater.js]]

importScript('User:Enterprisey/delsort.js'); // Backlink: [[User:Enterprisey/delsort.js]]
importScript('User:RedWarn/.js'); // Backlink: [[User:RedWarn/.js]]
importScript('User:Shubinator/DYKcheck.js'); // Backlink: [[User:Shubinator/DYKcheck.js]]
// importScript('user:Qwertyytrewqqwerty/DisamAssist.js'); // Backlink: [[user:Qwertyytrewqqwerty/DisamAssist.js]]
importScript('User:Skynxnex/NeoDisamAssist.js'); // Backlink: [[User:Skynxnex/NeoDisamAssist.js]]
importScript('User:Wugapodes/Capricorn.js'); // Backlink: [[User:Wugapodes/Capricorn.js]]
//importScript('User:Ingenuity/AntiVandal.js'); // Backlink: [[User:Ingenuity/AntiVandal.js]]
//importScript('User:Evad37/OneClickArchiver.js'); // Backlink: [[User:Evad37/OneClickArchiver.js]]
importScript('User:TheTVExpert/rmCloser.js'); // Backlink: [[User:TheTVExpert/rmCloser.js]]
importScript( 'User:Danski454/stubsearch.js' ); // Backlink: [[User:Danski454/stubsearch.js]]

mw.loader.getScript('https://en.wikipedia.org//w/index.php?title=User:Skynxnex/autoed.js&action=raw&ctype=text/javascript');
importScript('User:MPGuy2824/MoveToDraft.js'); // Backlink: [[User:MPGuy2824/MoveToDraft.js]]
importScript('User:Skynxnex/VitalTopicon.js'); // Backlink: [[User:Skynxnex/VitalTopicon.js]]
importScript('User:SD0001/twinkleos.js'); // Backlink: [[User:SD0001/twinkleos.js]]
//importScript('User:Awesome_Aasim/xfdvote.js'); // Backlink: [[User:Awesome_Aasim/xfdvote.js]]
importScript('User:SD0001/StubSorter.js'); // Backlink: [[User:SD0001/StubSorter.js]]
importScript('User:Ingenuity/AbuseFilterContribs.js'); // Backlink: [[User:Ingenuity/AbuseFilterContribs.js]]
importScript('User:Elli/OneClickArchiver.js'); // Backlink: [[User:Elli/OneClickArchiver.js]]
importScript('User:Eejit43/scripts/afcrc-helper.js'); // Backlink: [[User:Eejit43/scripts/afcrc-helper.js]]
importScript('User:Jackmcbarn/editProtectedHelper.js'); // Backlink: [[User:Jackmcbarn/editProtectedHelper.js]]
importScript('User:DreamRimmer/DeletedMetaData.js'); // Backlink: [[User:DreamRimmer/DeletedMetaData.js]]
importScript('User:Headbomb/unreliable.js'); // Backlink: [[User:Headbomb/unreliable.js]]
importScript('User:Skynxnex/AntiVandal.js'); // Backlink: [[User:Skynxnex/AntiVandal.js]]