Jump to content

User:Phlsph7/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.
// shows monthly views, watchers, size, and word count on every page
importScript('User:Phlsph7/MonthlyViewsAndWatchers.js');

// marks unreliable sources
importScript('User:Headbomb/unreliable.js'); // Backlink: [[User:Headbomb/unreliable.js]]

// marks duplicate links
importScript('User:Phlsph7/MarkDuplicateLinks.js');

// unfolds and numbers the TOC of the new Vector 2022 skin
importScript('User:Phlsph7/UnfoldedNumberedTOC(Vector2022).js'); // [[User:Phlsph7/UnfoldedNumberedTOC(Vector2022).js]]

// highlights unreferenced passages
importScript('User:Phlsph7/HighlightUnreferencedPassages.js'); // Backlink: [[User:Phlsph7/HighlightUnreferencedPassages.js]]
//highlightUnreferencedPassagesAutomatic = true;

// show errors when using templates like "harv" and "sfn"
importScript('User:Ucucha/HarvErrors.js'); // Backlink: [[User:Ucucha/HarvErrors.js]]
//importScript('User:Lingzhi2/reviewsourcecheck.js'); // Backlink: [[User:Lingzhi2/reviewsourcecheck.js]]
//setTimeout(function(){document.getElementById('ca-showCk').click()}, 3000); // automatically active after loading

// detect unreliable sources based on URL
importScript( 'User:Novem Linguae/Scripts/CiteHighlighter.js' ); // Backlink: [[User:Novem Linguae/Scripts/CiteHighlighter.js]]

// Classical table of contents for Vector 2022 skin
importScript('User:Phlsph7/ClassicalTOC(Vector2022).js'); // Backlink: [[User:Phlsph7/ClassicalTOC(Vector2022).js]]

// Highlight duplicated references
importScript('User:Chlod/Scripts/DuplicatedRefs.js'); // Backlink: [[User:Chlod/Scripts/DuplicatedRefs.js]]

// Highlight sentences by readability
importScript('User:Phlsph7/Readability.js'); // Backlink: [[User:Phlsph7/Readability.js]]

// WikiChatbot
importScript('User:Phlsph7/WikiChatbot.js'); // Backlink: [[User:Phlsph7/WikiChatbot.js]]

importScript('User:Phlsph7/ListUnreferencedParagraphs.js'); // Backlink: [[User:Phlsph7/ListUnreferencedParagraphs.js]]

importScript('User:SD0001/GAR-helper.js'); // [[User:SD0001/GAR-helper.js]]

importScript( 'User:Novem Linguae/Scripts/GANReviewTool.js' ); // Backlink: [[User:Novem Linguae/Scripts/GANReviewTool.js]]

importScript( 'User:SuperHamster/CiteUnseen.js' ); // Backlink: [[User:SuperHamster/CiteUnseen.js]]

importScript(`User:Phlsph7/SpellGrammarHelper.js`); // Backlink: [[User:Phlsph7/SpellGrammarHelper.js]]

importScript(`User:Phlsph7/AlphabeticToolbox.js`); // Backlink: [[User:Phlsph7/AlphabeticToolbox.js]]

// always scroll to top when previewing
(function(){
	const allowedActions = ['edit', 'submit'];
	if(allowedActions.indexOf(mw.config.get("wgAction")) != -1){
		setTimeout(function() {
			window.scrollTo({ top: 0});
		}, 1000);
	}
})();