// ==UserScript== // @name The Eighth // @namespace userscipts.org // @description JB's Quick-Nav cript Redeux // @include http://forums.whirlpool.net.au* // ==/UserScript== (function() { if(document.URL == 'http://forums.whirlpool.net.au/' || document.URL == 'http://forums.whirlpool.net.au/index.cfm'){ $ = unsafeWindow.jQuery; 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'){ arrHolder.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'); $(GM_getValue('h3check').split(',')).each(function(){ checkIfSimonHasChangedShitAgain($(this).text()); }); } var eD = document.createElement('div'); eD.setattribute('id', 'eiDiv'); $('body').prepend(eD); $(GM_getValue('h3check').split(',')).each(function(){ var thiST = $(this).text(); var hrArrSplit = GM_getValue(''+thiST+'href').split(','); var unLi = document.createElement('ul'); unLi.setattribute('class', 'theeighth'); $(GM_getValue(''+thiST+'').split(',')).each(function(i){ var l = document.createElement('li'); l.setattribute('class', 'theeighthli'); l.innerHTML = ''+$(this).text()+''; unLi.appendChild(l); }); eD.appendChild(unLi); }); })();