User:CowHammer/monobook.js

function addlilink(tabs, url, name, id, title, key){ var na = document.createElement('a'); na.href = url; na.appendChild(document.createTextNode(name)); var li = document.createElement('li'); if(id) li.id = id; li.appendChild(na); tabs.appendChild(li); na.accesskey = key; var pref = 'alt-'; if(((clientPC.indexOf('AppleWebKit')!=-1) && (clientPC.indexOf('spoofer')==-1)) || navigator.userAgent.toLowerCase.indexOf( 'mac' ) != -1 ) pref = 'control-'; if(clientPC.indexOf('opera')!=-1) pref = 'shift-esc-'; if(key && title) na.title = title + ' [' + pref + key + ']'; else if(title) na.title = title; else if(key) na.title = '[' + pref + key + ']'; return li; } function addTab(url, name, id, title, key){ var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0]; addlilink(tabs, url, name, id, title, key); }

// Qwikify addOnloadHook(   function  {         addTab("javascript:doAWF", "AWF", "ca-AWF", "Fix broken Angel Wikiquote");    } ); function doAWF { document.editform.wpTextbox1.value = document.editform.wpTextbox1.value.replace("wikiquote|Angel#","wikiquote|Angel (TV series)#"); document.editform.wpTextbox1.value = document.editform.wpTextbox1.value.replace("wikiquotepar|Angel#","wikiquotepar|Angel (TV series)#"); document.editform.wpTextbox1.value = document.editform.wpTextbox1.value.replace("Wikiquote|Angel#","Wikiquote|Angel (TV series)#"); document.editform.submit; }