User:Paper9oll/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 { 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 { 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 { 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-vector-gadget-pt-boilerplate-sticky-header { 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-vector-gadget-pt-pagecuration-sticky-header { 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-vector-gadget-pt-phabricator-sticky-header { background-image: url(/w/resources/lib/ooui/themes/wikimediaui/images/icons/logo-Wikimedia.svg); }'), ); });