User:RealFakeKim/Scripts/commonLinks.js

Source: 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.
//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]]