User:QwertyQwerpus/bookmarks.js

document.cookie = 'e; expires=Thu, 2 Aug 2011 20:47:11 UTC; path=/'; document.getElementById('n-sitesupport').innerHTML+=' '; var bookmarks=document.cookie.split("|"); for (x in bookmarks) { document.getElementById('n-sitesupport').innerHTML+=''+x+'-'; } document.getElementById('n-sitesupport').innerHTML+='Bookmark This Page</li>'; function qwbkminus(page){ var bookmarks=document.cookie.split("|"); var back; for (x in bookmarks) { if(x!==decodeURIComponent(page)){back+=decodeURIComponent(page+'|');} } document.cookie = back+'; expires=Thu, 2 Aug 2011 20:47:11 UTC; path=/'; return true; } function qwbkplus{ document.cookie = document.cookie+encodeURIComponent('|'+wgPageName)+'; expires=Thu, 2 Aug 2011 20:47:11 UTC; path=/'; return true; }