// ==UserScript== // @name WLR for IE & Opera // @namespace http://forums.whirlpool.net.au // @version 0.1 // @description A port to IE & Opera of Meat Sack's WLR script // @include http://forums.whirlpool.net.au/* // @exclude http://forums.whirlpool.net.au/forum-replies.cfm?*p=-2* // @exclude http://forums.whirlpool.net.au/forum-replies-archive.cfm* // ==/UserScript== /**to do**/ //test the next cookie when cookie full //make the smileys run more effeciently? - i.e. textnodes /*function bugga(bugsName,bugsValue){ if($('#hideShow')[0] === undefined){ $('body').prepend(''); } var tempHoldDebug = $('#debugDiv').html(); $('#debugDiv').html(tempHoldDebug+"

----------------------------------

"+""+bugsName+":  "+bugsValue+"

"); $('#hideShow').unbind(); $('#hideShow').mouseup( function(){$('#debugDiv').toggle();}); }*/ /***WLR settings***/ if(document.URL.toLowerCase().indexOf('wlr') > -1){ if(document.cookie.indexOf('wlrsettings') < 0){ document.cookie = 'wlrsettings=LastReadTracker:fals,lrTrackBottom:fals,avatars:fals,highlightRight:fals,InlineImages:fals,Smileys:fals,StyleWiki:fals,CodeHighlight:fals,HidePosts:fals,HideOwnDetails:fals,SwickiSearch:fals,MyRig:fals,Quicknav:fals,WhimBig:fals,HoldThePhone:fals;expires=Fri, 17 Dec 2009 10:00:00 GMT'; } $('#replies').prepend('

Last Read Tracker

Remebers the post you read up to

'+ '

Last Read (bottom post)

Adds a bottom link

'+ '

Avatars

Guy that flies a plane

'+ '

Higlight To Right Of Read Post

Yeah does that

'+ '

Inline Images

Displays Images in posts

'+ '

Smileys

Shows smiley images

'+ '

Style Wiki Links

makes wiki links look goodera

'+ '

Code Highlighting

Makes your code (inside [##] & [\'\'] whircode) look perdy in the Coding & Web Section

'+ '

Hide User\'s Posts (for IE only)

Yeah does that and anyone that quotes them

'+ '

Hide Own Details

Makes your own userpage bettera

'+ '

Swicki Search

Adds a swicki search to the thread search page

'+ '

My Rig

Adds a link to users pc specs wiki entry

'+ '

Hold The Phone

Moves phone forums to bottom right on index page

'+ '

Quicknav

Adds a navigation menu to every page

'+ '

Whim Big

Make the whim box bigger on userpages

'); $('.wlrsettings input:checkbox').each(function(){ if(document.cookie.substr(document.cookie.indexOf($(this).attr("name")+':')+$(this).attr("name").length,5) == ':true'){ $(this).attr('checked','checked'); } if(($.browser.msie) && ($(this).attr("name") == 'HidePosts')){ $(this).removeAttr("disabled"); } $(this).click(function(){ var attNm = $(this).attr("name"); var cookieSettingsString = document.cookie.slice(document.cookie.indexOf('wlrsettings='),document.cookie.indexOf('Phone', document.cookie.indexOf('wlrsettings='))+10); var boolcheck = document.cookie.substr(document.cookie.indexOf(attNm+':')+attNm.length+1,4); if(boolcheck == 'true'){ document.cookie = cookieSettingsString.replace(attNm+":true",attNm+":fals"); } else{ document.cookie = cookieSettingsString.replace(attNm+":fals",attNm+":true"); } }); }); } /***Hold The Phone***/ if(((document.URL == 'http://forums.whirlpool.net.au/forum.cfm') || (document.URL == 'http://forums.whirlpool.net.au/'))&&(document.cookie.substr(document.cookie.indexOf('HoldThePhone:')+13,4) == 'true')){ $('body/table/tbody/tr/td:eq(1)/div:eq(0)/table/tbody/tr'+ '/td:eq(3)/table/tbody').append($('body/table/tbody/tr/'+ 'td:eq(1)/div:eq(0)/table/tbody/tr/td:eq(1)/table/tbody/tr:gt(10)').lt(5)); } /***oh noes!!!***/ if(document.URL.indexOf('err') > -1){ var img = document.createElement("img"); img.src = "http://img.photobucket.com/albums/v215/thegooddale/tildecatWLR.jpg"; img.style.marginTop = "20px"; img.style.marginLeft = "30px"; document.getElementsByTagName('td')[0].appendChild(img); } /***Meat Sack's Smilies***/ var smlHappy = ''; var smlFrown = ''; var smlRazz = ''; var smlGrin =''; var smlNtl =''; var smlWink =''; var smlRoll =''; var smlShock =''; var smlEvil =''; var imgStar =''; var imgGUWPCT =''; smileys = { ">:\\)" : smlEvil, ":\\)" : smlHappy, ":-\\)" : smlHappy, ":\\(" : smlFrown, ":-\\(" : smlFrown, ":D" : smlGrin, ":-D" : smlGrin, ":\\|" : smlNtl, ":-\\|" : smlNtl, ":P" : smlRazz, ":-P" : smlRazz, ";\\)" : smlWink, ";-\\)" : smlWink, "rolls eyes": smlRoll, ":o" : smlShock, ":-o" : smlShock, "GUWPCT" : imgGUWPCT, "gold star" : imgStar }; regex = {}; for (key in smileys) { regex[key] = new RegExp(key, 'g'); } /*******whirlcode********/ var whirlCode = { wc_whirlBold : { encloseLeft : "[*", encloseRight : "*]"}, wc_whirlItalic : { encloseLeft : "[/", encloseRight : "/]"}, wc_whirlSingleQuote : { encloseLeft : "['", encloseRight : "']"}, wc_whirlDoubleQuote : { encloseLeft : "[\"", encloseRight : "\"]"}, wc_whirlQuote : { encloseLeft : "[+", encloseRight : "+]"}, wc_whirlSuperscript : { encloseLeft : "[^", encloseRight : "^]"}, wc_whirlSubscript : { encloseLeft : "[\\", encloseRight : "\\]"}, wc_whirlStrike : { encloseLeft : "[-", encloseRight : "-]"}, wc_whirlCourier : { encloseLeft : "[#", encloseRight : "#]"}, wc_whirlSmall : { encloseLeft : "[(", encloseRight : ")]"}, wc_whirlGrey : { encloseLeft : "[`", encloseRight : "`]"}, wc_whirlSerif : { encloseLeft : "[~", encloseRight : "~]"}, wc_whirlGoogle : { encloseLeft : "[?", encloseRight : "?]"}, wc_whirlEscape : { encloseLeft : "[.", encloseRight : ".]"}, wc_whirlWiki : { encloseLeft : "[[", encloseRight : "]]"} }; /********whirlcode buttons*********/ var wcButtons = '
' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '
'; /*******whirlcode buttons event handler********/ function doStuffToTheText(theTextBox){ $('.wcodeButtons').mouseup(function(){ var buttonID = $(this).attr('id'); var currentValue = theTextBox.value; var theSelection = document.selection.createRange().text; theTextBox.focus(); if(theSelection === ""){ if(buttonID == "wc_whirlurl"){ //for some reason IE7 considers an input box a security risk - so gotta do modal document.selection.createRange().text = '&<#^&#'; $('body').prepend(''); $('body').prepend('
'+ '

Enter link title:

'+ '  
'); $('.cancel').mouseup(function(){ $('#modal,#modal2').remove(); $('#body')[0].value = $('#body')[0].value.replace("&<#^&#",""); theTextBox.focus(); }); setTimeout("$('#urlAddress').focus();", 5); var urlAdd; $('#ok')[0].onmouseup = firstOK; $('#urlAddress')[0].onkeyup = function (evt) { if (!evt) { evt = window.event; } if(evt.keyCode == 13){ firstOK(); } }; function firstOK(){ if ($('#urlAddress')[0].value !== ""){ urlAdd = $('#urlAddress')[0].value; $('#modal').remove(); setTimeout("$('#urlName').focus();", 5); } } $('#ok2')[0].onmouseup = secondOk; $('#urlName')[0].onkeyup = function (evt) { if (!evt) { evt = window.event; } if(evt.keyCode == 13){ secondOk(); } }; function secondOk(){ if ($('#urlName')[0].value !== ""){ var urlN = $('#urlName')[0].value; $('#modal2').remove(); if(urlAdd.indexOf('http') < 0){ $('#body')[0].value = $('#body')[0].value.replace('&<#^&#',''+urlN+''); } else{ $('#body')[0].value = $('#body')[0].value.replace('&<#^&#',''+urlN+''); } } } } else if(((currentValue.split(whirlCode[buttonID].encloseLeft).length+currentValue.split(whirlCode[buttonID].encloseRight).length) % 2) === 0){ document.selection.createRange().text = whirlCode[buttonID].encloseLeft; } else{ document.selection.createRange().text = whirlCode[buttonID].encloseRight; } } else if((theSelection !== "") && (buttonID != 'wc_whirlurl')){ document.selection.createRange().text = whirlCode[buttonID].encloseLeft + theSelection + whirlCode[buttonID].encloseRight; } theTextBox.focus(); theSelection = ''; }); } var lrl; if(document.cookie.indexOf('wlrcookie') > -1){ var docCookArray = document.cookie.split('; '); var wlrCookArray = []; for(ca=0;ca -1){ var cookieSplit = docCookArray[ca].split('wlrcookie=')[1]; wlrCookArray.unshift(cookieSplit); //so oldest cookie is at end } } var wlrCookArrayString = wlrCookArray.toString().replace(/,/g,""); var arr; var regexCheat = wlrCookArrayString+"t%3D"; } /*******run on forum-threads.cfm page********/ /****Cookies & Last Read Function on forum-threads.cfm page*****/ if((document.URL.indexOf('threads') > -1) || (document.URL.indexOf('user') > -1)&&(document.cookie.substr(document.cookie.indexOf('LastReadTracker:')+16,4) == 'true')){ $('td[@width=23] a').each(function(){ var bottomLinkParent = $(this).parent(); var cutHref = this.href.slice(this.href.indexOf('t=')+2,this.href.indexOf('&p=-1#bottom')); if((wlrCookArrayString !== undefined) && (wlrCookArrayString.indexOf(cutHref) > -1)){ var getLastRead = regexCheat.slice(regexCheat.indexOf(cutHref), regexCheat.indexOf('t%3D', regexCheat.indexOf(cutHref))); var getCount; (document.URL.indexOf('user') > -1) ? getCount = bottomLinkParent.prev().prev().text() : getCount = bottomLinkParent.prev().prev().prev().prev().text() if( (Number(getCount) +1) > getLastRead.split('%23r')[1]){ //new posts if(document.cookie.substr(document.cookie.indexOf('lrTrackBottom:')+14,4) == 'true'){ bottomLinkParent.clone().css({opacity: "0.4"}).insertAfter(bottomLinkParent); } this.href = this.href.replace("&p=-1#bottom","").replace(""+cutHref+"", ""+decodeURIComponent(getLastRead)+""); bottomLinkParent.css({background:"#DDDDDD url(http://img.photobucket.com/albums/v215/thegooddale/red-ltgrey.gif) repeat scroll 0%"}); $(this).attr('title','Jump to last read post').children('img').attr('alt','Jump to last read post'); } else{ //no new posts this.href = this.href.replace("&p=-1#bottom","").replace(""+cutHref+"", ""+decodeURIComponent(getLastRead)+""); bottomLinkParent.css({background:"#DDDDDD url(http://img.photobucket.com/albums/v215/thegooddale/blue4-ltgrey.gif) repeat scroll 0%"}); $(this).attr('title','No new posts').children('img').attr('alt','No new posts'); } } }); } //end Cookies & Last Read Function on forum-threads.cfm page /*******run on forum-replies page********/ if (document.URL.indexOf('replies') > -1) { var threadNoCheck = $('a').contains('First post')[0].href.replace("&p=-1",""); var threadNumberWc; if (threadNoCheck.indexOf('#') > -1){ threadNumberWc = threadNoCheck.slice(threadNoCheck.indexOf('t=')+2, threadNoCheck.indexOf('#')); } else{ threadNumberWc = threadNoCheck.split('t=')[1]; } var replyLink = $('.breadtask a:first')[0].href; /****Avatars*****/ if(document.cookie.substr(document.cookie.indexOf('avatars:')+8,4) == 'true'){ var lnk = document.createElement('LINK'); lnk.rel = 'stylesheet'; lnk.type = 'text/css'; lnk.href = 'http://ideatriage.com/wlr/avatar/avatar.css'; document.getElementsByTagName( 'HEAD' )[0].appendChild( lnk ); $("td[@class^=bodyuser]").each(function(){ $(this).children('a:first').wrap('
'); //temp fix so the div:first-child in the WLR CSS works var tempLinkuserId = $(this).children('div:eq(2)').children('a:first')[0].href; var prunedId = tempLinkuserId.slice(tempLinkuserId.indexOf('id=')+3); $(this).parent().addClass('wlr_'+prunedId); }); } if (replyLink.indexOf("print") === -1){ //check if thread is closed $('.greylink:even').after(' | q-quote'); /*******insert the quick quote text box********/ $('#replies').after('
' + '
' + wcButtons+ '' + '' + '' + '' + '' + '' + '' + '
' + ' ' + '' + '
' + '
'); /***event handlers for Preview & Clear Buttons***/ var getOnce = $('#body'); var theTextBox = getOnce[0]; $('#prev').mouseup(function(){ this.value = 'Please wait...'; return true; }); $('#clearText').mouseup(function(){ theTextBox.value = ""; theTextBox.focus(); return false; }); /***quick quote function***/ $('.qquoteie').click(function(){ var theClick = $(this); var txt = document.selection.createRange().text; var getLink = theClick.prev().prev().attr("href"); var getPostId = getLink.slice(getLink.indexOf("r=")+2, getLink.indexOf("&tp")); var getUserName = theClick.parent().parent().prev().prev().find('.bu_name').text(); var writesID = "[+"+getPostId+" "+getUserName+" writes... +]\n"; var writesText = '["'+txt+'"]\n\n'; var anyTextInBox = theTextBox.value; if (anyTextInBox !== ""){ theTextBox.value = anyTextInBox+"\n"+writesID+writesText; } else{ theTextBox.value = writesID+writesText; } window.scrollBy(0, 999999999); theTextBox.focus(); return false; }); getOnce.css("width","70%"); doStuffToTheText(theTextBox); } /****Cookies & Last Read Function on forum-replies page*****/ var anchorAray = []; var hrefArray = []; function getY( obj, linkHref ){ //http://www.quirksmode.org/js/findpos.html var curtop = 0; if (obj.offsetParent) { curtop = obj.offsetTop; while (obj = obj.offsetParent) { curtop += obj.offsetTop; } } anchorAray.push(curtop); hrefArray.push(linkHref); } $('a[@title$=specific post]').each(function(){ getY(this, this.href); }); function writeToCookie(lrl){ function putStringArrayBackToCookie(lrl ,arr) { var w = 0; var wlrCookArrayFinal = []; for(i=0;i= 4000) && ( document.cookie.split('; ').length < 18)){ //if current cookie's length is greater than or equal to 4000 (about 4K in size) & there are less than 18 cookies, create a new cookie var x = Number(document.cookie.charAt(document.cookie.lastIndexOf('wlrcookie')-1)); //the last index of wlrcookie should be the most recent cookie x++; document.cookie = x+'wlrcookie='+lrl+';expires=Fri, 17 Dec 2009 10:00:00 GMT'; } else if(wlrCookArrayString.indexOf(threadNumberWc) < 0){ //if the thread number is not in any cookie, if( document.cookie.split('; ').length < 18){ var arrSplit = wlrCookArrayString.split( "t%3D" ); arrSplit.shift(); arr = arrSplit.reverse(); //split it then reverse it so when allocate back to cookies, the first item(which will be the oldest anchor) will be allocated to the oldest cookie first - which will then be at the end of the cookie's value putStringArrayBackToCookie(lrl, arr); } else{ var arrSplit = wlrCookArrayString.split( "t%3D" ); arrSplit.shift(); arr = arrSplit.reverse(); //split it then reverse it so when allocate back to cookies, the first item(which will be the oldest anchor) will be allocated to the oldest cookie first - which will then be at the end of the cookie's value arr.pop(); putStringArrayBackToCookie(lrl, arr); } } else if((wlrCookArrayString.indexOf(threadNumberWc) > -1) && (Number(regexCheat.slice(regexCheat.indexOf('%23r', regexCheat.indexOf(threadNumberWc))+4, regexCheat.indexOf('t%3D', regexCheat.indexOf(threadNumberWc)))) < Number(lrl.split('%23r')[1]))){ //if they move down an already tracked page - should save new anchor (if it's higher) and delete old one - var toSearchFor = regexCheat.slice(regexCheat.indexOf(threadNumberWc)-4, regexCheat.indexOf('t%3D', regexCheat.indexOf(threadNumberWc))); //search & remove if( document.cookie.split('; ').length < 18){ var repTosear = wlrCookArrayString.replace(""+toSearchFor+"", ""); if(repTosear.length === 0){ document.cookie = '0wlrcookie='+lrl+';expires=Fri, 17 Dec 2009 10:00:00 GMT'; } else{ var arrSplit = repTosear.split( "t%3D" ); arrSplit.shift(); //remove first empty split on left arr = arrSplit.reverse(); //split it then reverse it so when allocate back to cookies, the first item(which will be the oldest anchor) will be allocated to the oldest cookie first - which will then be at the end of the cookie's value putStringArrayBackToCookie(lrl, arr); } } else{ if(wlrCookArray[wlrCookArray.length-1].slice(wlrCookArray[wlrCookArray.length-1].lastIndexOf("t%3D")).indexOf(threadNumberWc) > -1){ var arrSplit = wlrCookArrayString.split("t%3D"); arrSplit.shift(); //remove first empty split on left arr.pop(); //remove anchor from the end beacuse it contains the anchor we want to replace anyway arr.pop(); //remove anchor from the end so enough room to put another one in cookie arr = arrSplit.reverse(); //split it then reverse it so when allocate back to cookies, the first item(which will be the oldest anchor) will be allocated to the oldest cookie first - which will then be at the end of the cookie's value putStringArrayBackToCookie(lrl, arr); } else{ wlrCookArrayString = wlrCookArrayString.replace(""+toSearchFor+"", ""); var arrSplit = wlrCookArrayString.split( "t%3D" ); arrSplit.shift(); //remove first empty split on left arr.pop(); //remove anchor from the end so enough room to put another one in cookie arr = arrSplit.reverse(); //split it then reverse it so when allocate back to cookies, the first item(which will be the oldest anchor) will be allocated to the oldest cookie first - which will then be at the end of the cookie's value putStringArrayBackToCookie(lrl, arr); } } } } function readFromCookieOnThread(){ if(document.cookie.indexOf('wlrcookie') > -1){ if(wlrCookArrayString.indexOf(threadNumberWc) > -1) { var anchorfromCookie = regexCheat.slice(regexCheat.indexOf('%23r', regexCheat.indexOf(threadNumberWc))+4, regexCheat.indexOf('t%3D', regexCheat.indexOf(threadNumberWc))); var getAnchorNumber; for(h=0;h= 0){ lrl = encodeURIComponent(hrefArray[j].substr(hrefArray[j].indexOf('?')+1)); break; } if((tempAnchorAray[j] < 0) && ((tempAnchorAray[j] > tempHoldMeh) || (tempHoldMeh === undefined))){ tempHoldMeh = tempAnchorAray[j]; lrl = encodeURIComponent(hrefArray[j].substr(hrefArray[j].indexOf('?')+1)); } } writeToCookie(lrl); } function saveTheCookieSaveTheWorld(){ if(document.URL.indexOf('bottom') > -1){ lrl = encodeURIComponent(hrefArray[hrefArray.length-1].substr(hrefArray[hrefArray.length-1].indexOf('?')+1)); writeToCookie(lrl); } else{ var numArrayLength = anchorAray.length; var tempAnchorAray = []; for(i=0;i 500) && ((document.documentElement.scrollTop + window.innerHeight - 25) > largestScrollY) ) { lastScrollEvent = eventTime; largestScrollY = (document.documentElement.scrollTop + window.innerHeight - 25); saveTheCookieSaveTheWorld(); } } window.onscroll = operaSucksTehBigOne; saveTheCookieSaveTheWorld(); } else{ var largestScrollY = document.documentElement.scrollTop + document.documentElement.clientHeight - 25; window.onscroll = function() { if ((document.documentElement.scrollTop + document.documentElement.clientHeight - 25) > largestScrollY){ largestScrollY = (document.documentElement.scrollTop + document.documentElement.clientHeight - 25); } }; window.onclose = saveTheCookieSaveTheWorld; window.onunload = saveTheCookieSaveTheWorld; } readFromCookieOnThread(); } /****End of Cookies & Last Read Function on forum-replies page*****/ /****Inline Images*****/ if(document.cookie.substr(document.cookie.indexOf('InlineImages:')+13,4) == 'true'){ $("a[@target=_blank]").each(function(){ if(this.href.toLowerCase().lastIndexOf('.jpg') > -1){ $(this).children('img:last').after('
'); } else if(this.href.toLowerCase().lastIndexOf('.jpeg') > -1){ $(this).children('img:last').after('
'); } else if(this.href.toLowerCase().lastIndexOf('.bmp') > -1){ $(this).children('img:last').after('
'); } else if(this.href.toLowerCase().lastIndexOf('.png') > -1){ $(this).children('img:last').after('
'); } else if(this.href.toLowerCase().lastIndexOf('.gif') > -1){ $(this).children('img:last').after('
'); } }); } /***Meat Sack's Smileys***/ if(document.cookie.substr(document.cookie.indexOf('Smileys:')+8,4) == 'true'){ $('.bodytext').each(function(){ for (key in smileys) { var smilRep = $(this).html().replace(regex[key], smileys[key]); $(this).html(smilRep); } }); } /***Style Wiki Links***/ if(document.cookie.substr(document.cookie.indexOf('StyleWiki:')+10,4) == 'true'){ $('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'); }); } /***google code prettifier(kinda works)***/ if((document.title.indexOf('Coding & Web - Whirlpool Broadband Forums') > -1) && (document.cookie.substr(document.cookie.indexOf('CodeHighlight:')+14,4) == 'true')){ var getCode = $('tt,.wcrep2'); getCode.wrap(''); if($.browser.opera) { var head = document.getElementsByTagName('head')[0]; var el2 = document.createElement('style'); el2.type = 'text/css'; el2.innerHTML = ".str { color: #080; }.kwd { color: #008; }.com { color: #800; }.typ { color: #606; }.lit { color: #066; }"+ ".pun { color: #660; }.pln { color: #000; }.tag { color: #008; }.atn { color: #606; }.atv { color: #080; }.dec { color: #606; }"+ "code.prettyprint { padding: 2px; }"; head.appendChild(el2); } else{ var mysheet3=document.styleSheets[1]; mysheet3.addRule(".str ", "color:#080;"); mysheet3.addRule(".kwd ", "color:#008;"); mysheet3.addRule(".com ", "color:#800;"); mysheet3.addRule(".typ ", "color:#606;"); mysheet3.addRule(".lit ", "color:#066;"); mysheet3.addRule(".pun ", "color:#660;"); mysheet3.addRule(".pln ", "color:#000;"); mysheet3.addRule(".tag ", "color:#008;"); mysheet3.addRule(".atn ", "color:#606;"); mysheet3.addRule(".atv ", "color:#080;"); mysheet3.addRule(".dec ", "color:#606;"); mysheet3.addRule("code.prettyprint ", "padding:2px;"); getCode.each(function(){ //clean up   glitch $(this).html($(this).html().replace(/ /gi, 'spayCey')); }); } // See http://code.google.com/p/google-code-prettify/ (function () { var F={};(function(){var b=["abstract bool break case catch char class const const_cast continue default delete deprecated dllexport dllimport do double dynamic_cast else enum explicit extern false float for friend goto if inline int long mutable naked namespace new noinline noreturn nothrow novtable operator private property protected public register reinterpret_cast return selectany short signed sizeof static static_cast struct switch template this thread throw true try typedef typeid typename union unsigned using declaration, directive uuid virtual void volatile while typeof", "as base by byte checked decimal delegate descending event finally fixed foreach from group implicit in interface internal into is lock null object out override orderby params readonly ref sbyte sealed stackalloc string select uint ulong unchecked unsafe ushort var","package synchronized boolean implements import throws instanceof transient extends final strictfp native super","debugger export function with NaN Infinity","require sub unless until use elsif BEGIN END","and assert def del elif except exec global lambda not or pass print raise yield False True None", "then end begin rescue ensure module when undef next redo retry alias defined","done fi"];for(var c=0;c",quot:'"',apos:"'",amp:"&"};u.prototype.decode=function(b,c){var a=c+1,d=b.charAt(c);if("&"===d){var f=b.indexOf(";",a);if(f>=0&&f="a"&&b<="z"||b>="A"&&b<="Z"}function z(b){return x(b)||b=="_"||b=="$"||b=="@"}function s(b){return"\t \r\n".indexOf(b)>=0}function w(b){return b>="0"&&b<="9"}function I(b){var c=0,a=b.length-1;while(c<=a&&s(b.charAt(c))){++c}while(a>c&&s(b.charAt(a))){--a}return b.substring(c,a+1)}function y(b,c){return b.length>=c.length&&c==b.substring(0,c.length)}function L(b,c){return b.length>= c.length&&c==b.substring(b.length-c.length,b.length)}function A(b,c,a){if(c/g,">").replace(/\xa0/g," ")}function E(b){return"XMP"==b.tagName}var B=null;function N(b){if(null==B){var c=document.createElement("PRE");c.appendChild(document.createTextNode('\n'));B=!/");for(var h=b.firstChild;h;h=h.nextSibling){D(h,c)}if(b.firstChild||!/^(?:br|link|img)$/.test(a)){c.push("")}break;case 2:c.push(b.name.toLowerCase(),'="',b.value.replace(/&/g,"&").replace(//g,">").replace(/\"/g,""").replace(/\xa0/," "),'"');break;case 3:case 4:c.push(H(b.nodeValue));break}}function M(b,c){var a=0,d=new u,f=[];for(var h=0;h=0;m-=" ".length){k.push(" ".substring(0,m))}g=d.next;break;case "\n":case "\r":a= 0;break;default:++a}}k.push(e.substring(g));f.push(new q(k.join(""),i.style))}return f}function K(b){var c=/(?:[^<]+|<\/?[a-zA-Z][^>]*>|<)/g,a=b.match(c),d=[];if(a){var f=null;for(var h=0,i=a.length;h0){a.push(new q(i.token.substring(h,i.token.length),null==i.style?null:l.style))}f+=m;h=0;if(d"==p){a=0;t="dec"}break;case 4:if("-"==p){a=5}break;case 5:if("-"==p){a=6}break;case 6:if(">"==p){a=0;t="com"}else if("-"==p){a=6}else{a=4}break;case 7:if(x(p)){a=8}else if("<"==p){a=1}else{a=0}break;case 8:if(">"==p){a=0;t="tag"}break;case 9:if("?"== p){a=10}break;case 10:if(">"==p){a=0;t="src"}else if("?"!=p){a=9}break;case 11:if("%"==p){a=12}break;case 12:if(">"==p){a=0;t="src"}else if("%"!=p){a=11}break}if(ia){var k=b.substring(a,i),l=new u;l.decode(k,0);var j=l.ch,o=l.next==k.length,m;if(z(j)){if(F[k]){m="kwd"}else if(j==="@"){m="lit"}else{var n=false;if(j>="A"&&j<="Z"){for(var p=l.next;p="a"&&v<="z"){n=true; break}}if(!n&&!o&&k.substring(k.length-2)=="_t"){n=true}}m=n?"typ":"pln"}}else if(w(j)){m="lit"}else if(!s(j)){m="pun"}else{m="pln"}a=i;c.push(new q(k,m))}d=0;if(g==-1){h=i;continue}}d=g}}}function X(b){if(!(b&&b.length)){return b}var c=R(b);return G(b,c)}function W(b){var c=[],a=0,d="tag",f=null,h=new u;for(var i=0;i"){if("tag"!=d){m=l;n="tag"}}else{switch(a){case 0:if("<"== j){a=1}break;case 1:if(s(j)){a=2}break;case 2:if(!s(j)){n="atn";m=l;a=3}break;case 3:if("="==j){m=l;n="tag";a=5}else if(s(j)){m=l;n="tag";a=4}break;case 4:if("="==j){a=5}else if(!s(j)){m=l;n="atn";a=3}break;case 5:if('"'==j||"'"==j){m=l;n="atv";a=6;f=j}else if(!s(j)){m=l;n="atv";a=7}break;case 6:if(j==f){m=o;n="tag";a=2}break;case 7:if(s(j)){m=l;n="tag";a=2}break}}if(m){if(m>k){c.push(new q(g.substring(k,m),d));k=m}d=n}l=o}if(g.length>k){c.push(new q(g.substring(k,g.length),d))}}else{if(e.style){a= 0;d="tag"}c.push(e)}}return c}function U(b){var c=[],a=null,d=new u,f=null;for(var h=0,i=b.length;;++h){var e;if(h=0&&">"==d.decode(g,j+1)&&g.length==d.next){l=new q(g.substring(j,g.length),"tag");g=g.substring(0,j)}}if(null==f){f=[]}f.push(new q(g,"pln"))}else if("pln"==e.style){if(null==f){f=[]}f.push(e)}else if("tag"==e.style){if("<"==d.decode(e.token,0)&&e.token.length>d.next&&"/"==d.decode(e.token,d.next)){l=e}else{c.push(e)}}else if(h>=i){l=e}else{if(f){f.push(e)}else{c.push(e)}}if(l){if(f){var o= C(f);c.push(new q("",null));for(var m=0,n=o.length;m",null));f=null}if(l.token){c.push(l)}a=null}}else{c.push(e)}}return c}function Q(b){var c=null,a=null;for(var d=0;d=0;){if("pln"==b[d].style){a=d;break}}if(null==c){return b}var f=new u,h=b[c].token,i=f.decode(h,0);if('"'!=i&&"'"!=i){return b}var e=f.next,g=b[a].token,k=g.lastIndexOf("&");if(k<0){k=g.length-1}var l= f.decode(g,k);if(l!=i||f.next!=g.length){l=null;k=g.length}var j=[];for(var d=0;d",null));var k=C(Q(a));for(var l=0,j=k.length;l",null));a=null}}else if(f&&e.token.indexOf("=")>=0){var o=f.toLowerCase();if(y(o,"on")||"style"==o){d=true}}else{f=""}}else if("atn"==e.style){f+=e.token}else if("atv"==e.style){if(d){if(null==a){a=[]}g=a;e=new q(e.token,"pln")}}else{if(a){g=a}}g.push(e)}return c}function C(b){var c=V(b),a=[];for(var d=0;d=0;){if("pln"==c[f].style){a=L(I(c[f].token),">");break}}}break}}return a?O(c):C(c)}function Z(b){try{var c=P(b),a=[],d=null;for(var f=0;f")}if(h.style!=null){a.push("")}d=h.style}var i=h.token;if(null!=h.style){i=i.replace(/(\r\n?|\n| ) /g,"$1 ").replace(/\r\n?|\n/g,"
")}a.push(i)}if(d!=null){a.push("
")}return a.join("")}catch(e){if("console"in window){console.log(e);console.trace()}return b}}function Y(){var b=[document.getElementsByTagName("pre"),document.getElementsByTagName("code"),document.getElementsByTagName("xmp")],c=[];for(var a=0;a=0){var g=false;for(var k=e.parentNode;k!=null;k=k.parentNode){if((k.tagName=="pre"||k.tagName=="code"||k.tagName=="xmp")&&k.className&&k.className.indexOf("prettyprint")>=0){g=true;break}}if(!g){var l=N(e);l=l.replace(/(?:\r\n?|\n)$/,"");var j=Z(l);if(!E(e)){e.innerHTML=j}else{var o=document.createElement("PRE");for(var m=0;mHide'); var hideclick = $('.hideClick'); hideclick.each(function(){ $(this).click(function(){ getUserName = $(this).parent().next().children().children().text(); if($(this).text() == "Hide"){ var currentList = decodeURI(GM_getValue("hiddenUsers")); if(GM_getValue("hiddenUsers") == "none"){ GM_setValue("hiddenUsers", encodeURI(getUserName+"&")); replacePostText(); } else{ GM_setValue("hiddenUsers", encodeURI(currentList+getUserName+"&")); nortiUsers = decodeURI(GM_getValue("hiddenUsers")).split("&"); nortiUsers.pop(); replacePostText(); } } else if($(this).text() == "Show"){ if((nortiUsers == undefined) || (nortiUsers.length == 1)){ GM_setValue("hiddenUsers", "none"); } else{ var removeUserFromList = decodeURI(GM_getValue("hiddenUsers")).replace(""+getUserName+"&", ""); GM_setValue("hiddenUsers", encodeURI(removeUserFromList)); nortiUsers = decodeURI(GM_getValue("hiddenUsers")).split("&"); nortiUsers.pop(); } $('.bodytext').contains(getUserName+' writes...').children().toggle(); var tempHoldShow = $('.bodyuser').contains(getUserName); tempHoldShow.next().children().toggle(); tempHoldShow.find('a.hideClick').text('Hide'); } return false; }); }); function replacePostText(){ if(nortiUsers == undefined){ var tempHoldOneA = $('.bodyuser').contains(getUserName); tempHoldOneA.next().children().hide(); tempHoldOneA.next().prepend('Post Hidden'); tempHoldOneA.find('a.hideClick').text('Show'); var tempHoldTwoB = $('.bodytext').contains(getUserName+' writes...'); tempHoldTwoB.children().hide(); tempHoldTwoB.prepend('Post Hidden'); } else{ for(var i=0;iPost Hidden
'); tempHoldOneC.find('a.hideClick').text('Show'); var tempHoldTwoD = $('.bodytext').contains(nortiUsers[i]+' writes...'); tempHoldTwoD.children().hide(); tempHoldTwoD.prepend('Post Hidden'); } } } replacePostText(); } } /***My Rig***/ if(document.cookie.substr(document.cookie.indexOf('MyRig:')+6,4) == 'true'){ var currentWikiList = { "108637" : "pcb_AusScare", "72323" : "pcb_Ay%20eN%20De%20whY", "87112" : "pcb_benly", "116070" : "pcb_B_o_", "6538" : "userspec_bagurk", "67098" : "pcb_blackflame", "101178" : "userspec__Bobso_", "65032" : "userspec_BonoVox", "62034" : "userspec_borgnefesse", "142916" : "userspec_Brtttt", "145221" : "userspec_bursty007", "140196" : "userspec_camerooney81", "163032" : "userspec_chickenrice", "55432" : "userspec_crysalis", "32744" : "userspec_Chris", "139685" : "userspec_Dan1605", "161601" : "Dave963", "113221" : "pcb_daredevil77", "93556" : "pcb_Degrador", "92566" : "pcb_duff", "39034" : "DejaVoodoo", "128485" : "userspec_dlnqnt", "173289" : "userspec_eukaryote", "64250" : "userspec_EwarWoo", "137309" : "userspec_evonet", "113221" : "pcb_daredevil77", "101448" : "userspec_fat_dogs", "139148" : "userspec_finzy", "156243" : "userspec_FJ_P510", "90375" : "userspec_fineri", "169739" : "pcb_giordano", "132594" : "pcb_GIRAFFE", "154845" : "pcb_grey", "92961" : "pcb_guff", "40942" : "userspec_hellman109", "104649" : "userspec_hidden_ability", "66309" : "pcb_iamviet3", "146882" : "James01", "85332" : "pcb_jasrulz", "43189" : "userspec_K8Canb", "165123" : "userspec_Kickz101", "135132" : "userspec_kiplinght", "100820" : "userspec_kv7", "166424" : "userspec_Krucigen", "123612" : "userspec_lijy", "139075" : "Lugo", "154308" : "userspec_membreya", "127690" : "userspec_migod", "15325" : "userspec_modafroman", "137738" : "usersspec_monopoly", "31129" : "userspec_MnEmOnIcS", "96828" : "userspec_MMB", "112307" : "userspec_PhOeNiX83", "165597" : "userspec_pookstar", "21915" : "userspec_psyrus", "12990" : "pcb_pyro", "133424" : "userspec_Rah_Xephon", "116215" : "userspec_raverz", "127311" : "userspec_redwan", "161105" : "userspec_richardczz", "25999" : "userspec_S-Murfy", "5977" : "userspec_s3n", "133848" : "userspec_sean_finn", "99612" : "userspec_sick0o", "134053" : "userspec_the_stig", "63699" : "Simon%20K", "144752" : "51M0N", "165010" : "steenholdt", "105767" : "pcb_timmmmaaaah", "103079" : "userspec_Womble89", "5790" : "userspec_WikiWil", "148388" : "userspec_Xam", "125815" : "userspec_zuey-" }; var voteBlockArray = $('.voteblock'); var parentID; voteBlockArray.each(function(){ parentID = "d"+$(this).siblings('a:eq(0)').attr('name'); $(this).after('

My Rig

'); }); $('.rigLink').click( function(event) { event.preventDefault(); var userNo = $(this).parent().siblings('div:eq(2)').children('a')[0].href.split('id=')[1]; var wikiLink; if (currentWikiList[userNo]){ wikiLink = "http://forums.whirlpool.net.au/index.cfm?a=wiki&tag=" + currentWikiList[userNo]; } else{ wikiLink = "http://forums.whirlpool.net.au/index.cfm?a=wiki&tag=userspec_" + userNo; } var getparentID = "d"+$(this).parent().siblings('a:eq(0)').attr('name'); var parentIDGetonce = $('#'+getparentID+''); if(parentIDGetonce.css("display") == 'none'){ parentIDGetonce.css("display","block"); function showImages() { if($('#'+getparentID+' .dynImage')[0] !== undefined){ $('#'+getparentID+' .dynImage').remove(); } else{ $('#'+getparentID+' a[@target=_blank]').each(function(){ if(this.href.toLowerCase().lastIndexOf('.jpg') > -1){ $(this).children('img:last').after('
'); } else if(this.href.toLowerCase().lastIndexOf('.jpeg') > -1){ $(this).children('img:last').after('
'); } else if(this.href.toLowerCase().lastIndexOf('.bmp') > -1){ $(this).children('img:last').after('
'); } else if(this.href.toLowerCase().lastIndexOf('.png') > -1){ $(this).children('img:last').after('
'); } else if(this.href.toLowerCase().lastIndexOf('.gif') > -1){ $(this).children('img:last').after('
'); } }); } } parentIDGetonce.html(''); $.get(wikiLink, function(data){ if (data.indexOf("No entry yet for") < 0){ var sliceData = data.slice(data.indexOf(''),data.indexOf('',data.indexOf(''))); parentIDGetonce.html(sliceData).before('Show ImagesX'); } else { parentIDGetonce.html('

User has no rig details listed.

See this wiki entry for details on how to add yours.').prepend('X'); } $('.showImages').click(function(event){ event.preventDefault(); if($(this).text() == 'Show Images'){ $(this).text('Hide Images'); } else{ $(this).text('Show Images'); } showImages(); }); $('.closediv').click(function(event){ event.preventDefault(); parentIDGetonce.css("display","none"); $(this).prev().remove(); $(this).remove(); }); }); } else{ parentIDGetonce.css("display","none"); $(this).parent().siblings('a:gt(0)').remove() } return false; }); } }//end of run on forum-replies page /***run on wiki pages****/ if(document.URL.indexOf('wiki') > -1){ var theTextBox = $('#f_body')[0]; $('#f_body').after(wcButtons); doStuffToTheText(theTextBox); } /***run on whim read****/ if((document.URL.indexOf("whim-read")>-1) && (document.cookie.substr(document.cookie.indexOf('Smileys:')+8,4) == 'true')){ for (key in smileys) { var smilRep = $('#replies').html().replace(regex[key], smileys[key]); $('#replies').html(smilRep); } } /***run on whim send****/ if(document.URL.indexOf("whim-send")>-1){ var theTextBox = $('#body')[0]; $('#body').css({width:'600px'}).before(wcButtons); $('#buttonsDiv').css({fontSize: '80%', textAlign: 'center', marginTop: '5px', marginBottom: '5px', width:'600px'}); doStuffToTheText(theTextBox); if(document.cookie.substr(document.cookie.indexOf('Smileys:')+8,4) == 'true'){ for (key in smileys) { var smilRep = $('td[@bgcolor="#c3c9de"]').html().replace(regex[key], smileys[key]); $('td[@bgcolor="#c3c9de"]').html(smilRep); } } } /***run on preview page****/ if(document.URL.indexOf("reply")>-1){ var theTextBox = $('#body')[0]; $('#body').css({width:'600px',marginTop: '10px'}).before(wcButtons).parent().css('width','600px'); doStuffToTheText(theTextBox); if(document.cookie.substr(document.cookie.indexOf('Smileys:')+8,4) == 'true'){ for (key in smileys) { var smilRep = $('.bodytext:last').html().replace(regex[key], smileys[key]); $('.bodytext:last').html(smilRep); } } } /***run on user page****/ if(document.URL.indexOf("forum-user.cfm")>-1){ var inputBody = $('#body'); var theTextBox = inputBody[0]; inputBody.before(wcButtons); $('#buttonsDiv').css({fontSize: '80%', textAlign: 'center', marginTop: '5px', marginBottom: '5px'}).parent().css("width","410px").parent().parent().css("width","410px"); doStuffToTheText(theTextBox); if(document.cookie.substr(document.cookie.indexOf('WhimBig:')+8,4) == 'true'){ inputBody.css("width", "400px").attr("rows", "10"); $('input[@name=subject]').css({width: '400px', marginBottom: '20px'}); } if((document.URL.indexOf($(".nav_item_name > a > span").text().split('user ')[1]) > -1) && (document.cookie.substr(document.cookie.indexOf('HideOwnDetails:')+15,4) == 'true')){ var aboutTr = $('tr[@valign=bottom]:first'); aboutTr.css({cursor:'pointer'}).children('td').css("opacity","0.5").end().next().attr('id','hider'); aboutTr.hover(function(){ $(this).children('td').css("opacity","1"); },function(){ if(trHide.css('display') == 'none'){ $(this).children('td').css("opacity","0.5"); } else{ $(this).children('td').css("opacity","0.9"); } }); var trHide = $('#hider'); trHide.hide(); aboutTr.toggle(function(){ trHide.css('display','block'); $(this).children('td').css('opacity','0.9'); },function(){ trHide.css('display','none'); $(this).children('td').css('opacity','0.5'); }); } } /***run on thread search page***/ if((document.URL.indexOf("search")>-1) && (document.URL.indexOf("head") < 0) && (document.cookie.substr(document.cookie.indexOf('SwickiSearch:')+13,4) == 'true')){ function mywrite(s) { $("form[@action*=forum-search]").next().after('

'+s+'
'); } document.write = mywrite; //the Bravo magic if($.browser.msie) { var mysheet=document.styleSheets[1]; mysheet.addRule("#swickiForm ", "padding:0;margin:0;"); mysheet.addRule("#swickiSearch ", "background-color:#EEEEEE;font-family:Arial;font-size:10px;height:auto;padding:5px;"); mysheet.addRule("#w ", "width:100%;"); mysheet.addRule(".communitypowered ", "width:66%;color:#F05C25;font-size:9px;line-height:10px;padding:2px;"); mysheet.addRule("#headertitle ", "float:left;font-size:13px;font-family:Arial;color:#666666;white-space:nowrap;text-transform:uppercase;"); mysheet.addRule("#cloudheader ", "-moz-box-sizing: border-box;padding:5px 10px 2px 10px;text-align:left;height:22px;overflow:hidden;background:#EEEEEE;"); mysheet.addRule(".hotcloud ", "padding:10px;background:#EEEEEE;font-family:Georgia;line-height:1.1;overflow:hidden;border-top:1px solid #FFFFFF;"); mysheet.addRule(".clouditem a ", "text-decoration:none;color:#F26721;"); mysheet.addRule(".clouditem a:hover ", "text-decoration:none;background:#f6f6f6; color:#F26721;"); mysheet.addRule(".dellink ", "visibility:hidden;position:relative;top:-12px;left:-8px;background:#EEEEEE;font-size:10px;font-weight:bold;color:#F05C25;"); mysheet.addRule(".link ", "font-size:11px;color:#F26721;text-decoration:none;"); mysheet.addRule(".link:hover ", "text-decoration:underline;background:#f6f6f6;"); mysheet.addRule(".clouditem a.recent_search ", "color: red;"); mysheet.addRule("#cloudfooter ", "margin-top:5px;padding:5px;height:10px;"); mysheet.addRule("#cloudmore ", "color:#F26721;float:right;"); mysheet.addRule("#cloudquestionl ", "float:left;"); mysheet.addRule("#cloudquestionr ", "float:right;"); mysheet.addRule("#cloudanswer ", "display:none;padding:5px;font-family:Arial;font-size:11px;color:#000;text-align:left;"); mysheet.addRule("#cloudanswer a ", "text-decoration:underline;"); } script = document.createElement('script'); script.charset="UTF-8"; script.type = 'text/javascript'; script.src = "http://swicki.eurekster.com/sidebar?groupkey=4c78bb27-79f3-4878-a1bb-93e62086793a&target=_self&numresults=20&format=js"; $("head").append(script); } var userNumber = $(".nav_item_name > a > span").text(); if($.browser.msie) { var mysheet2=document.styleSheets[1]; /***Style Buttons****/ mysheet2.addRule("#prev", "border:0px solid gray; color:black; background:#FFDCBF; width:150px; font:16px Arial;margin:2px 10px 0 0;"); mysheet2.addRule("#clearText", "border:0px solid gray; color:black; background:#DAF2B3; width:150px; font:16px Arial;margin:2px 0 0 10px;"); mysheet2.addRule(".wcodeButtons", "color:black;font:11px Tahoma"); if(document.cookie.substr(document.cookie.indexOf('Quicknav:')+9,4) == 'true'){ /***JB's Nav (the quarter)***/ mysheet2.addRule("#nav-container","position: fixed;left:132px;top: 24px;font-size:11px;font-family:Arial,sans-serif;z-index:1000;margin:25px 0 50px 15px;height:16px;overflow:hidden;"); mysheet2.addRule("#nav-container:hover","height:235px;overflow: visible;cursor:pointer;"); mysheet2.addRule("#nav-container img","border:none;margin-bottom:-3px;background-color: transparent;width: 16px;height: 16px;padding-right:20px;padding-bottom:2px;"); mysheet2.addRule("#nav-container ul","padding:0;margin:0;list-style-type:none;width:130px;border-bottom: 1px solid #444;"); mysheet2.addRule("#nav-container li","position:relative;background: rgb(58, 67, 123);height:23px;"); mysheet2.addRule("#nav-container table","position:absolute; border-collapse:collapse; top:0; left:0; z-index:100; font-size:1em;"); mysheet2.addRule("#nav-container a","display:block;text-decoration:none;height:22px;line-height:22px;width:129px;color:#FFF;text-indent:10px;border: 1px solid #444; border-width:1px 1px 0;"); mysheet2.addRule("#nav-container a:hover","color:#fff; background: orange;"); mysheet2.addRule("#nav-container :hover > a","color:#fff;background: orange;"); mysheet2.addRule("#nav-container ul ul","visibility:hidden;position:absolute;top:0;left:130px;border-bottom: 1px solid #444;"); mysheet2.addRule("#nav-container ul li:hover ul","visibility:visible;"); mysheet2.addRule("#nav-container ul a:hover ul","visibility:visible;"); mysheet2.addRule("#nav-container li","float:left;"); mysheet2.addRule("#nav-container .righty li","background: rgb(97, 108, 163);"); $("body").append(''); } } else{ if(document.cookie.substr(document.cookie.indexOf('Quicknav:')+9,4) == 'true'){ var head = document.getElementsByTagName('head')[0]; var el = document.createElement('style'); el.type = 'text/css'; el.innerHTML = "#theHalf_nav { position: fixed; left:146px; top: 24px; font-size:11px;font-family:Arial,sans-serif;"+ "background: transparent;width: 16px; height:16px;}#theHalf_nav ul, #theHalf_nav li { padding: 0; margin: 0; list-style:"+ "none; }#theHalf_nav:hover { width:165px; }#theHalf_dropdown { width: 154px; position: absolute; left: -3000px; top: 0;"+ "background: transparent; }#theHalf_dropdown div { width: 143px; position: absolute; left: -3000px; top: 0;background: "+ "transparent; }#theHalf_dropdown ul { width: 132px; margin: 11px;border: 1px solid #444;border-width: 0 0 1px; }"+ "#theHalf_dropdown div ul { margin: 30px 30px 30px 0; }#theHalf_nav a,#theHalf_nav span { display: block; text-decoration: none;}"+ "#theHalf_dropdown a,#theHalf_dropdown span { padding: 2px; }#theHalf_dropdown span { cursor:default; }#theHalf_nav ul ul li "+ "{ border: 1px solid #444; border-width:1px 1px 0;}#theHalf_dropdown li { position: relative; }#theHalf_button:hover "+ "#theHalf_dropdown { left:-12px; top:-33px;}#theHalf_dropdown li:hover div { top:-31px; left:130px;}#theHalf_nav #theHalf_mini-zone "+ "{ padding: 0; width: 15px; height: 15px; font-size: 1px; left: -3000px;bottom: -15px; top: auto; background: transparent; }"+ "#theHalf_nav #theHalf_dropdown li:hover #theHalf_mini-zone { left: auto; right: -4px; top: auto; }#theHalf_parent {z-index: 1000;}"+ "#theHalf_dropdown li { background: rgb(58, 67, 123); }#theHalf_dropdown li:hover { background: orange;color:#fff; }#theHalf_dropdown "+ "ul ul li { background: rgb(97, 108, 163); }#theHalf_dropdown ul ul li:hover { background: orange;color:#fff; }#theHalf_dropdown li "+ "a,#theHalf_dropdown li span { color: #fff; }#theHalf_dropdown ul ul li a,#theHalf_dropdown ul ul li a { color: #fff; }#theHalf_dropdown"+ "ul { border-color:#000000;}#theHalf_nav ul ul li { border-color:#000000; }.theHalf_sep { height:4px; background-color:#000000; }"+ ".theHalf_section:before { content: '- '; }.theHalf_hidden { visibility:hidden; }"; head.appendChild(el); //copy & paste FTW!! ( © Bravo Worldwide Holdings Inc. ) $("body").prepend(''); } }