// ==UserScript== // @name The Eighth // @namespace userscipts.org // @description JB's Quick-Nav script Redeux // @include http://forums.whirlpool.net.au* // ==/UserScript== (function() { $ = unsafeWindow.jQuery; if(document.URL == 'http://forums.whirlpool.net.au/' || document.URL == 'http://forums.whirlpool.net.au/index.cfm'){ function checkIfSimonHasChangedShitAgain(gm){ var arrHolder = [], hrefArr = [], dGetter; (gm == 'h3check')?dGetter = $('h3') : dGetter = $("h3:contains('"+gm+"')").parent().find("a[@href*='forum-threads.cfm']"); dGetter.each(function(){ arrHolder.push($(this).text()); if(gm != 'h3check'){ hrefArr.push($(this)[0].href); } }); var ts = arrHolder.toString(); if(!GM_getValue(''+gm+'') || ts != GM_getValue(''+gm+'') ){ GM_setValue(''+gm+'',''+ts+''); if(gm != 'h3check'){ GM_setValue(''+gm+'href',''+hrefArr.toString()+''); } } } checkIfSimonHasChangedShitAgain('h3check'); var splith3 = GM_getValue('h3check').split(','); for(var i=0;i a {background:#dfd7ca; color:#c00;}"+ "#pmenu li ul {display: none;} "+ "#pmenu li:hover > ul {display:block; position:absolute; top:0; z-index:51;margin-left:90px;}"); var unLi = document.createElement('ul'); unLi.setAttribute('id', 'pmenu'); $('body').prepend(unLi); var h3splitSecond = GM_getValue('h3check').split(','); for(var j=0;j'; var ul2 = document.createElement('ul'); ul2.setAttribute('class', 'theeighthul'); l.appendChild(ul2); for(var k=0;k'+splitagain[k]+''; ul2.appendChild(l2); } unLi.appendChild(l); } })();