User:Dexter111344/fixwatchlist.js

function doaddlilink(tabs, url, name, id) { var na = document.createElement('a'); na.href = url; na.id = id; na.appendChild(document.createTextNode(name)); var li = document.createElement('li'); li.appendChild(na); tabs.appendChild(li); return li; }

function fixLoader {   var tabs = document.getElementById('p-personal').getElementsByTagName('ul')[0]; tabs.removeChild(document.getElementById('pt-following')); doaddlilink(tabs, '/wiki/Special:Watchlist', 'watchlist', 'pt-watchlist'); }

var mybrowser = navigator.userAgent; if(mybrowser.search(/MSIE/i) != -1) {   attachEvent('onload', fixLoader); } else if(mybrowser.search(/Firefox/i) == -1) { document.addEventListener('load', fixLoader, false); }else { document.addEventListener('DOMContentLoaded', fixLoader, false); }