Jump to content

User:Daask/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.
/// UNSORTED / UNTESTED

// [[User:Evad37/MoveToDraft]]
importScript('User:Evad37/MoveToDraft.js'); // Backlink: [[User:Evad37/MoveToDraft.js]]
importScript('User:Bellezzasolo/Scripts/arb.js'); // Backlink: [[User:Bellezzasolo/Scripts/arb.js]]

// For template editing
// [[User:Salix alba/TDSkell]]
importScript('User:Salix alba/TDSkell.js'); // Backlink: [[User:Salix alba/TDSkell.js]]

/// REFERENCES

// [[User:Ucucha/HarvErrors]]
importScript('User:Svick/HarvErrors.js'); // Backlink: [[User:Svick/HarvErrors.js]]

// [[Wikipedia:reFill]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User%3AZhaofeng_Li%2FReflinks.js&action=raw&ctype=text/javascript'); // Backlink: [[User:Zhaofeng Li/Reflinks.js]]

// [[User:Salix alba/Citoid]]
importScript('User:Salix alba/Citoid.js'); // Backlink: [[User:Salix alba/Citoid.js]]

// [[User:Diegodlh/Web2Cit/script]] and [[meta:Web2Cit]]
mw.loader.load( '//en.wikipedia.org/w/index.php?title=User:Diegodlh/Web2Cit/script.js&action=raw&ctype=text/javascript' ); // Backlink: [[:en:User:Diegodlh/Web2Cit/script.js]]

/// EDITING

// [[WP:AutoEd]]
// [[User:Frietjes/findargdups]]
importScript('User:Frietjes/findargdups.js'); // Backlink: [[User:Frietjes/findargdups.js]]
importScript('Wikipedia:AutoEd/complete.js'); // Backlink: [[Wikipedia:AutoEd/complete.js]]
importScript('User:GregU/dashes.js'); // Backlink: [[User:GregU/dashes.js]]
// [[User:Ohconfucius/script/MOSNUM dates]]
importScript('User:Ohconfucius/script/MOSNUM dates.js'); // Backlink: [[User:Ohconfucius/script/MOSNUM dates.js]]

// https://meta.wikimedia.org/wiki/User:TMg/autoFormatter
mw.loader.load('//de.wikipedia.org/w/index.php?title=Benutzer%3ATMg%2FautoFormatter.js&action=raw&ctype=text/javascript');
// var autoFormatterButtonLabel = 'Auto-Format';
var autoFormatShortYearRanges = true;
var autoFormatReplacements = [
	['Ph.D.', 'PhD'],
	[/ +<ref\b/g, '<ref']
];

// [[User:PC-XT/Advisor]]
importScript('User:PC-XT/Advisor.js'); // Backlink: [[User:PC-XT/Advisor.js]]

// [[User:Daask/scripts/Some MOSNUM dates#FAQ]]
mosnum_keep_items = ['dmy-unitfixer', 'mdy-unitfixer'];
//importScript('User:Daask/scripts/Some MOSNUM dates.js'); // Backlink: [[User:Daask/scripts/Some MOSNUM dates.js]]

// For editing redirect pages
// [[User:Wugapodes/Capricorn]]
importScript('User:Wugapodes/Capricorn.js'); // Backlink: [[User:Wugapodes/Capricorn.js]]
// [[User:Kephir/gadgets/sagittarius]]
//importScript('User:Daask/sandbox/sagittarius.js'); // Backlink: [[User:Daask/sandbox/sagittarius.js]]
// For removing duplicate wikilinks: [[User:Ucucha/duplinks]]
importScript('User:Ucucha/duplinks.js'); // Backlink: [[User:Ucucha/duplinks.js]]
// [[User:Bility/copySectionLink]]
importScript('User:Bility/copySectionLink.js'); // Backlink: [[User:Bility/copySectionLink.js]]

window.hdedit_prefs = {
    'eventToActivate': 'dblclick'
};
// [[User:The Evil IP address/hdedit]]
importScript('User:The Evil IP address/hdedit.js'); // Backlink: [[User:The Evil IP address/hdedit.js]]

/// WATCHLIST

// [[User:Equazcion/ReverseMarked]]
importScript('User:Equazcion/ReverseMarked.js'); // Backlink: [[User:Equazcion/ReverseMarked.js]]
// [[User:Evad37/Watchlist-hideAWB]]
importScript('User:Evad37/Watchlist-hideAWB.js'); // Backlink: [[User:Evad37/Watchlist-hideAWB.js]]
var awbHiddenByDefault = true;

// [[Wikipedia:User scripts#Diffs]]
// [[User:Writ Keeper/Scripts/inlineDiffDocs]]
inspectText = "+";
showText = "+";
hideText = "-";
importScript('User:Writ Keeper/Scripts/commonHistory.js'); // Backlink: [[User:Writ Keeper/Scripts/commonHistory.js]]


/// WIKIPEDIA TOOLS

// [[User:Joeytje50/JWB]]
importScript('User:Joeytje50/JWB.js/load.js'); // Backlink: [[User:Joeytje50/JWB.js/load.js]]

// http://sam.zoy.org/wikipedia/
// Pxma's version does stuff, but ultimately leads to an error page.
// importScript('User:Pxma/godmode-light.js'); // Backlink: [[User:Pxma/godmode-light.js]]
// These don't seem to add a button at all.
// importScript('User:Gracenotes/rollback.js'); // Backlink: [[User:Gracenotes/rollback.js]]
// importScript('User:Porchcorpter/rollback.js'); // Backlink: [[User:Porchcorpter/rollback.js]]
// importScript('User:Quarl/rollback.js'); // Backlink: [[User:Quarl/rollback.js]]
// importScript('User:Olliminatore/godmode-light.js'); // Backlink: [[User:Olliminatore/godmode-light.js]]
// mw.loader.load('http://sam.zoy.org/wikipedia/godmode-light.js');

importScript('User:PleaseStand/userinfo.js'); // Backlink: [[User:PleaseStand/userinfo.js]]
// [[User:Equazcion/CatListMainTalkLinks]]
importScript('User:Equazcion/CatListMainTalkLinks.js'); // Backlink: [[User:Equazcion/CatListMainTalkLinks.js]]
// Duplicate functionality is provided by Twinkle
// [[User:Equazcion/SidebarHistoryTools]]
//importScript('User:Equazcion/SidebarHistoryTools.js'); // Backlink: [[User:Equazcion/SidebarHistoryTools.js]]
// [[User:Galobtter/Shortdesc helper]]
importScript('User:Galobtter/Shortdesc helper.js'); // Backlink: [[User:Galobtter/Shortdesc helper.js]]
// [[User:Equazcion/SandTab]]
importScript('User:Equazcion/SandTab.js'); // Backlink: [[User:Equazcion/SandTab.js]]
// [[User:Andy M. Wang/pageswap]]
importScript('User:Andy M. Wang/pageswap.js'); // Backlink: [[User:Andy M. Wang/pageswap.js]]
importScript('User:EnterpriseyBot/delsort.js'); // Backlink: [[User:EnterpriseyBot/delsort.js]]

// There are a number of tools for assessment
// [[User:Yuvipanda/AssessmentBar]]
// last updated 2012 https://en.wikipedia.org/w/index.php?title=User:YuviPanda/AssessmentBar.js&action=history
// [[User:Kaldari/assessmentHelper.js]]
// last updated 2017 https://en.wikipedia.org/w/index.php?title=User:Kaldari/assessmentHelper.js&action=history
importScript('User:Kaldari/assessmentHelper.js'); // Backlink: [[User:Kaldari/assessmentHelper.js]]
// [[User:Kephir/gadgets/rater]]
// I tried this one, and it didn't install/add the button properly. Might be an easy fix.
// last updated: 2015 https://en.wikipedia.org/w/index.php?title=User:Kephir/gadgets/rater.js&action=history
// but in use as of June 2017 at least, eg. [[Special:Diff/786464646]]
// importScript('User:Kephir/gadgets/rater.js'); // Backlink: [[User:Kephir/gadgets/rater.js]]


// [[User:Σ/Testing facility/Archiver]]
importScript('User:Σ/Testing facility/Archiver.js'); // Backlink: [[User:Σ/Testing facility/Archiver.js]]

// See also [[Wikipedia:Tools/Navigation shortcuts]]
// See also [[:de:Benutzer:TMg/cleanDiff]]

$.when( mw.loader.using( 'mediawiki.util' ), $.ready ).then( function () { 
	// [[Help:My sandbox]]
	// [[Help:Customizing toolbars]]
	// [[Wikipedia:User scripts/Guide#Portlets (menus and tabs)]]
	mw.util.addPortletLink(
	  'p-personal',
	  '/wiki/Special:MyPage/Notes',
	  'Notes',
	  'pt-mynotes',
	  'Edit Notes',
	  null,
	  '#pt-preferences'
	);
	mw.util.addPortletLink(
	  'p-personal',
	  '/wiki/Special:MyPage/drafts',
	  'Drafts',
	  'pt-mydrafts',
	  'Create or Edit User Drafts',
	  null,
	  '#pt-sandbox'
	);
	$( '#pt-sandbox' ).hide();
	$( '#pt-mycontris' ).hide(); // Contributions
	$( '#pt-betafeatures' ).hide();
});

// [[User:Jivecat/userwatch.js]]
importScript('User:Daask/sandbox/userwatch.js'); // Backlink: [[User:Daask/sandbox/userwatch.js]]

// Active after becoming an admin
// [[User:Ale jrb/Scripts]]
// importScript('User:Ale jrb/Scripts/csdhelper.js'); // Backlink: [[User:Ale jrb/Scripts/csdhelper.js]]
// importScript('User:Jackmcbarn/editProtectedHelper.js'); // Backlink: [[User:Jackmcbarn/editProtectedHelper.js]]


// [[Wikipedia:RedWarn]]
importScript('User:RedWarn/.js'); // Backlink: [[User:RedWarn/.js]]

// [[User:Mesidast/Tidy citations]]
importScript('User:Daask/Tidy citations.js'); // Backlink: [[User:Daask/Tidy citations.js]]

// [[User:BrandonXLF/ListSorter]]
importScript('User:BrandonXLF/ListSorter.js'); // Backlink: [[User:BrandonXLF/ListSorter.js]]

// [[User:BrandonXLF/ParameterSpacing]]
importScript('User:BrandonXLF/ParameterSpacing.js'); // Backlink: [[User:BrandonXLF/ParameterSpacing.js]]

// [[User:BrandonXLF/PortletLinks]]
importScript('User:BrandonXLF/PortletLinks.js'); // Backlink: [[User:BrandonXLF/PortletLinks.js]]

// [[User:BrandonXLF/ReferenceExpander]]
importScript('User:BrandonXLF/ReferenceExpander.js'); // Backlink: [[User:BrandonXLF/ReferenceExpander.js]]

// [[User:BrandonXLF/SubpageMover]]
importScript('User:BrandonXLF/SubpageMover.js'); // Backlink: [[User:BrandonXLF/SubpageMover.js]]

// [[User:BrandonXLF/CitationStyleMarker]]
importScript('User:BrandonXLF/CitationStyleMarker.js'); // Backlink: [[User:BrandonXLF/CitationStyleMarker.js]]
window.CSMarkerMode = 'both';
importScript('User:Qwertyytrewqqwerty/DisamAssist.js'); // Backlink: [[User:Qwertyytrewqqwerty/DisamAssist.js]]
importScript('User:BilledMammal/MovePlus.js'); // Backlink: [[User:BilledMammal/MovePlus.js]]
importScript('User:Enterprisey/copy-section-link.js'); // Backlink: [[User:Enterprisey/copy-section-link.js]]