Jump to content

User:RealFakeKim/Scripts/commonLinks.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by RealFakeKim (talk | contribs) at 13:58, 31 March 2020. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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.
//common.css has to come first so common.js can load in front of it

//common.css link
mw.util.addPortletLink(
	'p-personal',
	mw.util.getUrl( 'Special:MyPage/common.css' ),
	'common.css',
	'pt-common.css',
	'Your common.css page',
	null,
	'#pt-betafeatures'
);

//common.js link
mw.util.addPortletLink(
	'p-personal',
	mw.util.getUrl( 'Special:MyPage/common.js' ),
	'common.js',
	'pt-common.js',
	'Your common.js page',
	null,
	'#pt-common.css'
);