// ==UserScript== // @name WikiLinkStyle // @namespace wp // @version 0.2 // @description Style Unstyled Wiki Links // @include http://*.whirlpool.net.au/* // ==/UserScript== // Check if jQuery's loaded function GM_wait() { if(typeof unsafeWindow.jQuery == 'undefined') { window.setTimeout(GM_wait,100); } else { $ = unsafeWindow.jQuery; letsJQuery(); } } GM_wait(); // All your GM code must be inside this function function letsJQuery() { $('a').contains( 'index.cfm?a=wiki&tag' ).each( function(){ var link = this.href; $(this).html( link.replace( /.*index.cfm\?\a\=wiki\&tag\=/gi, "" )).addClass('wiki'); }); $('.publicnote a').css({color:"red", borderBottom: "1px dotted red"}); if (document.URL.indexOf('whim') > -1){ $('.pageforum td').attr("onclick",""); } }