User:Daask/common.js: Difference between revisions

Content deleted Content added
Add some more scripts
Wait to edit portlet until mw.util is loaded
Line 108:
// See also https://de.wikipedia.org/wiki/Benutzer:TMg/cleanDiff
 
$.when( mw.loader.using( 'mediawiki.util' ), $.ready ).then( function () {
// https://en.wikipedia.org/wiki/Help:My_sandbox
// https://en.wikipedia.org/wiki/Help:Customizing_toolbarsMy_sandbox
// https://en.wikipedia.org/wiki/Help:Customizing_toolbars
// https://en.wikipedia.org/wiki/Wikipedia:User_scripts/Guide#Portlets_.28add_custom_menus_and_tabs.29
mw.util.addPortletLink(
'p-personal',
'/wiki/Special:MyPage/Notes',
'Notes',
'pt-mynotes',
'Edit Notes',
null,
'#pt-preferences'
);
mw.util.addPortletLink(
'p-personal',
'/wiki/Special:MyPage/drafts',
'Drafts',
'pt-mydrafts',
'Create or Edit User Drafts',
null,
'#pt-sandbox'
);
$( '#pt-sandbox' ).hide();
$( '#pt-mycontris' ).hide(); // Contributions
$( '#pt-betafeatures' ).hide();
});
 
importScript( 'User:Daask/sandbox/userwatch.js' ); // Backlink: [[User:Jivecat/userwatch.js]]