User:DSP2092/Shortcuts.js

$.when( mw.loader.using( ['mediawiki.util'] ), $.ready ).done( function { mw.util.addPortletLink( 'p-personal', mw.util.getUrl('User:Paper9oll/Boilerplate'), 'Boilerplate', 'pt-boilerplate', 'My boilerplate', null, '#pt-preferences', mw.util.addCSS('.mw-ui-icon-vector-gadget-pt-boilerplate:before { background-image: url(/w/resources/lib/ooui/themes/wikimediaui/images/icons/markup.svg); }'), ); mw.util.addPortletLink( 'p-personal', mw.util.getUrl('Special:NewPagesFeed'), 'Page Curation', 'pt-pagecuration', 'View the new pages feed', null, '#pt-preferences', mw.util.addCSS('.mw-ui-icon-vector-gadget-pt-pagecuration:before { background-image: url(/w/resources/lib/ooui/themes/wikimediaui/images/icons/checkAll.svg); }'), ); mw.util.addPortletLink( 'p-personal', mw.util.getUrl('phab:'), 'Phabricator', 'pt-phabricator', 'Go to Phabricator', null, '#pt-preferences', mw.util.addCSS('.mw-ui-icon-vector-gadget-pt-phabricator:before { background-image: url(/w/resources/lib/ooui/themes/wikimediaui/images/icons/logo-Wikimedia.svg); }'), ); // Sticky header  mw.util.addPortletLink( 'p-personal-sticky-header', mw.util.getUrl('User:Paper9oll/Boilerplate'), 'Boilerplate', 'pt-boilerplate-sticky-header', 'My boilerplate', null, '#pt-preferences-sticky-header', mw.util.addCSS('.mw-ui-icon-boilerplate .mw-ui-icon-pt-boilerplate:before { background-image: url(/w/resources/lib/ooui/themes/wikimediaui/images/icons/markup.svg); }'), ); mw.util.addPortletLink( 'p-personal-sticky-header', mw.util.getUrl('Special:NewPagesFeed'), 'Page Curation', 'pt-pagecuration-sticky-header', 'View the new pages feed', null, '#pt-preferences-sticky-header', mw.util.addCSS('.mw-ui-icon-pagecuration .mw-ui-icon-pt-pagecuration:before { background-image: url(/w/resources/lib/ooui/themes/wikimediaui/images/icons/checkAll.svg); }'), ); mw.util.addPortletLink( 'p-personal-sticky-header', mw.util.getUrl('phab:'), 'Phabricator', 'pt-phabricator-sticky-header', 'Go to Phabricator', null, '#pt-preferences-sticky-header', mw.util.addCSS('.mw-ui-icon-phabricator .mw-ui-icon-pt-phabricator:before { background-image: url(/w/resources/lib/ooui/themes/wikimediaui/images/icons/logo-Wikimedia.svg); }'), ); });