Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- This injection is meant to be used in conjunction with the official Blood on the Clocktower Online tool. Just take the code below and add it as a bookmark to your browser and run it while the tool is open to use. (This can be done easily by highlighting the code below and dragging it onto your bookmark bar) The additional symbols can then be used by activating the additional gestures easter egg. For those using the standalone app, refer to the alternative section below.
- For those using Edge or having issues with getting the bookmark version functioning, it must be run from a bookmark bar and not a dropdown favorites menu.
- javascript:(function(){var parent=document,xhr,doc,scripts,mod;"online.bloodontheclocktower.com"==parent.domain?window.confirm("This bookmarklet will modify and reload this page\nWould you like to proceed?")?(xhr=new XMLHttpRequest,xhr.open("GET",parent.URL,!1),xhr.send(null),doc=parent.implementation.createHTMLDocument(""+(parent.title||"")),doc.open(),doc.write(xhr.responseText),doc.close(),scripts=Array.from(doc.querySelectorAll("head > script")).map(e=>{var o=new XMLHttpRequest;return o.open("GET",e.src,!1),o.send(null),e.remove(),o.responseText}),mod=[[/"face-frown"(?=\);const t)/g,%27"face-frown", "chair", "dragon", "skull", "search-plus", "stopwatch", "trash-alt", "yin-yang"%27]].forEach(e=>{scripts[1]=scripts[1].replace(e[0],e[1])}),parent.replaceChild(parent.importNode(doc.documentElement,!0),parent.documentElement),setTimeout(()=>{scripts.forEach(function(v){eval(v)})},500)):window.alert("Code injection cancelled"):window.confirm("This bookmarklet can only be run on bloodontheclocktower.com\nWould you like to go there?")&&(window.location.href="https://online.bloodontheclocktower.com/")})()
- If you are using the standalone app, you must instead open the console using CTRL+SHIFT+I and then copy the following code into the devtools console.
- !function(){var parent=document,xhr=new XMLHttpRequest;xhr.open("GET",parent.URL,!1),xhr.send(null);var doc=parent.implementation.createHTMLDocument(""+(parent.title||""));doc.open(),doc.write(xhr.responseText),doc.close();var scripts=Array.from(doc.querySelectorAll("head > script")).map(e=>{var t=new XMLHttpRequest;return t.open("GET",e.src,!1),t.send(null),e.remove(),t.responseText}),mod=[[/"face-frown"(?=\);const t)/g,'"face-frown", "chair", "dragon", "skull", "search-plus", "stopwatch", "trash-alt", "yin-yang"']].forEach(e=>{scripts[1]=scripts[1].replace(e[0],e[1])});parent.replaceChild(parent.importNode(doc.documentElement,!0),parent.documentElement),setTimeout(()=>{scripts.forEach(function(v){eval(v)})},500)}();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement