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

Content deleted Content added
add appearance pref portlet as I use both Vector 2022 (reading and dark mode) and 2010 (editing)
Undid revision 1300586055 by 2NumForIce (talk)
 
(12 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');
 
// 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"
);
 
/*** BEGIN WIKIBREAK ENFORCER ***/
Line 124 ⟶ 107:
});
/*** END WIKIBREAK ENFORCER ***/
 
/* Automate purge confirmation dialog */
if (mw.config.get('wgAction') === 'purge') {
$('form[action*="action=purge"]').submit();
}