Jump to content

User:Joe Sewell/addBookmark.js

From 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.
/* Want a personal bookmarks page? This script lets you add a link to it in the "personal" portlet. */
//<pre><nowiki>

$( document ).ready( function () {
  //Add a link to personal pointing to "Bookmarks" on the current site, just after "Contributions"
  mw.util.addPortletLink ('p-personal', mw.util.getUrl('Special:MyPage/Bookmarks'), 'My Bookmarks', 'pt-MyBookmarks', 'View my bookmarks', '', '#pt-mycontris')
} );

//</nowiki></pre>
// [[Category:Wikipedia scripts]]