Jump to content

User:RealFakeKim/Scripts/commonLinks.js

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by RealFakeKim (talk | contribs) at 14:20, 31 March 2020. The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
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.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-betafeatures'
);

//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'
);

//[[Category:Wikipedia scripts]]