User:2NumForIce/common.js: Difference between revisions

Content deleted Content added
add global pref link and mv autopurge closer to top
Undid revision 1300586055 by 2NumForIce (talk)
 
(9 intermediate revisions by the same user not shown)
Line 64:
importScript( 'User:Ingenuity/AbuseFilterContribs.js' ); // Backlink: [[User:Ingenuity/AbuseFilterContribs.js]]
importScript('User:Harej/citation-watchlist.js'); // Backlink: [[User:Harej/citation-watchlist.js]]
importScript('User:TheTVExpert/rmCloser.js'); // Backlink: [[User:TheTVExpert/rmCloser.js]]
 
mw.loader.load( 'ext.gadget.Navigation_popups' );
/* Make upload form text monospace */
mw.loader.load('https://wikicounter.toolforge.org/wikicounter.js');
importStylesheet('User:2NumForIce/Tools/UploadFormMonospace.css');
 
/* Automate purge confirmation dialog */
if (mw.config.get('wgAction') === 'purge') {
$('form[action*="action=purge"]').submit();
}
 
// Skip to bottom of talk link. Requires <nowiki>{{Skip to top and bottom}}</nowiki>.
mw.util.addPortletLink(
// portlet URL of link destination (not wiki page name; has to be URL) nom ID of link Portlet display text Access key Next link ID w/ #
"p-personal", mw.util.getUrl("User talk:2NumForIce#skip-to-bottom-anchor"), "↓", "pt-talk-bottom", "Go to bottom of your talk page", null, "#pt-mytalk"
);
 
// Appearance portlet link
mw.util.addPortletLink(
"p-personal",
mw.util.getUrl("Special:Preferences#mw-prefsection-rendering"),
"Appearance",
"pt-appearance-prefs",
"Go to appearance preferences",
null,
"#pt-betafeatures"
);
 
// Global prefs "gprefs"
mw.util.addPortletLink(
"p-personal",
mw.util.getUrl("Special:GlobalPreferences"),
"Global prefs",
"pt-global-prefs",
"Go to global preferences",
null,
"#pt-watchlist"
);
 
/*** BEGIN WIKIBREAK ENFORCER ***/