NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name bw_resources // @namespace bw_resources // @include http://www.bloodyworld.com/* // ==/UserScript== var doc = document.wrappedJSObject ? document.wrappedJSObject : document; var ddoc = (window.wrappedJSObject) ? window.wrappedJSObject : window; if(ddoc.rooms=='fish' || ddoc.rooms=='fish2'){ checkFish(); } else if(ddoc.rooms=='forest'){ patt=/forestNav\(0\);/; if(patt.exec(document.documentElement.innerHTML)){ //alert('Вход в лес'); } else{ if(ddoc.hiddenFind){ if(ddoc.hiddenFind=='style="visibility:visible;display:block";' || ddoc.hiddenFind=='style="visibility:visible; display:block";'){ location.href='http://www.bloodyworld.com/index.php?file=forest&find=1'; } else if(ddoc.hiddenFind=='style="visibility:hidden; display:block";' || ddoc.hiddenFind=='style="visibility:hidden;display:block";'){ location.href='http://www.bloodyworld.com/index.php?file=forest&id=1'; } else alert('Ошибка, скопируйте эту строчку змейке: '+ddoc.hiddenFind); } } } function checkFish(){ if(doc.getElementById("f_st5")){ if(doc.getElementById("f_st5").style.display=='block')ddoc.Go(); else if(doc.getElementById("f_st5").style.display=='none')setTimeout(checkFish,1000); else alert('Ошибка, скопируйте эту строчку змейке: '+doc.getElementById("f_st5").style.display); } }