From 10470d79eac71ed330ca4b17ed0a5a33d10100bb Mon Sep 17 00:00:00 2001 From: Lyzev <69327579+Lyzev@users.noreply.github.com> Date: Mon, 30 Jan 2023 15:37:25 +0000 Subject: [PATCH] Added icon --- higherlowergame.min.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/higherlowergame.min.js b/higherlowergame.min.js index 1d87434..0bdad76 100644 --- a/higherlowergame.min.js +++ b/higherlowergame.min.js @@ -5,8 +5,9 @@ // @description A cheat for higher lower game. // @author Lyzev // @match http://www.higherlowergame.com/ +// @icon https://www.google.com/s2/favicons?sz=64&domain=higherlowergame.com // @run-at document-start // @grant none // ==/UserScript==# -!function(){const e=5e3;let t=!1;const s=new XMLHttpRequest;s.open("GET","http://www.higherlowergame.com/questions/get/general",!1),s.setRequestHeader("User-Agent","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.82 Safari/537.36"),s.send();const n=JSON.parse(s.responseText),l=new Map;for(let e=0;e{t||0!==document.getElementsByClassName("term-volume__volume").length&&(t=!0,setTimeout(()=>{if(null!=n){let s=setInterval(()=>{if(0!==document.getElementsByClassName("term-volume__volume").length){let e=document.getElementsByClassName("term-keyword__keyword")[0].innerText,t=l.get(e.substring(1,e.length-1).toUpperCase()),s=document.getElementsByClassName("term-keyword__keyword")[1].innerText,n=l.get(s.substring(1,s.length-1).toUpperCase());n>t?document.getElementsByClassName("term-actions__button--higher")[0].click():document.getElementsByClassName("term-actions__button--lower")[0].click()}else clearInterval(s),t=!1},e)}else t=!1},2e3))},500)}(); \ No newline at end of file +const delay=5e3;let running=!1;const request=new XMLHttpRequest;request.open("GET","http://www.higherlowergame.com/questions/get/general",!1),request.setRequestHeader("User-Agent","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.82 Safari/537.36"),request.send();const data=JSON.parse(request.responseText),answers=new Map;for(let i=0;i{if(null!=data){let e=setInterval(()=>{if(0!==document.getElementsByClassName("term-volume__volume").length){let t=document.getElementsByClassName("term-keyword__keyword")[0].innerText,s=answers.get(t.substring(1,t.length-1).toUpperCase()),n=document.getElementsByClassName("term-keyword__keyword")[1].innerText;answers.get(n.substring(1,n.length-1).toUpperCase())>s?document.getElementsByClassName("term-actions__button--higher")[0].click():document.getElementsByClassName("term-actions__button--lower")[0].click()}else clearInterval(e),running=!1},5e3)}else running=!1},2e3)}setInterval(()=>{running||0===document.getElementsByClassName("term-volume__volume").length||start()},500);