NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Hack violympic Toan Tieng Anh // @namespace http://tampermonkey.net/ // @version 1.2 // @description get full score on violympic // @icon http://image2.apkpure.co/size150/f/b/1/hoc.toan.violympic.mathgame.png // @author giaosudauto // @match http://math.violympic.vn/* // @grant none // ==/UserScript== function create(htmlStr) { var frag = document.createDocumentFragment(), temp = document.createElement('div'); temp.innerHTML = htmlStr; while (temp.firstChild) { frag.appendChild(temp.firstChild); } return frag; } function createInterface() { create('<p id="hacker"></p>'); // tạo nút hack var fragment = create('<button id=btt type="button">Hack</button>'); document.body.insertBefore(fragment, document.getElementById("hacker")); var fragment = create('<select name="combo" id="combo"></select>'); document.body.insertBefore(fragment, document.getElementById("btt")); // thêm dạng bài var combo = document.getElementById("combo"); var dapde = document.createElement("option"); dapde.text = "Đập dế"; dapde.value = "Dapde"; try { combo.add(dapde, null); //Standard }catch(error) { combo.add(dapde); // IE only } var sapxep = document.createElement("option"); sapxep.text = "Sắp xếp"; sapxep.value = "Sapxep"; try { combo.add(sapxep, null); //Standard }catch(error) { combo.add(sapxep); // IE only } var dddr = document.createElement("option"); dddr.text = "Đừng để điểm rơi"; dddr.value = "DDDR"; try { combo.add(dddr, null); //Standard }catch(error) { combo.add(dddr); // IE only } var btba = document.createElement("option"); btba.text = "Bức tranh bí ẩn"; btba.value = "Buctranhbian"; try { combo.add(btba, null); //Standard }catch(error) { combo.add(btba); // IE only } var congiap = document.createElement("option"); congiap.text = "12 Con giáp"; congiap.value = "Congiap"; try { combo.add(congiap, null); //Standard }catch(error) { combo.add(congiap); // IE only } var timkhobau = document.createElement("option"); timkhobau.text = "Tìm kho báu"; timkhobau.value = "Timkhobau"; try { combo.add(timkhobau, null); //Standard }catch(error) { combo.add(timkhobau); // IE only } var cuocduacuncung = document.createElement("option"); cuocduacuncung.text = "Cuộc đua cún cưng"; cuocduacuncung.value = "Cuocduacuncung"; try { combo.add(cuocduacuncung, null); //Standard }catch(error) { combo.add(cuocduacuncung); // IE only } var tranggiay = document.createElement("option"); tranggiay.text = "Trang giấy trắng"; tranggiay.value = "tranggiay"; try { combo.add(tranggiay, null); //Standard }catch(error) { combo.add(tranggiay); // IE only } var trieuphu = document.createElement("option"); trieuphu.text = "Triệu phú toán học"; trieuphu.value = "trieuphu"; try { combo.add(trieuphu, null); //Standard }catch(error) { combo.add(trieuphu); // IE only } var contrung = document.createElement("option"); contrung.text = "Thế giới côn trùng"; contrung.value = "contrung"; try { combo.add(contrung, null); //Standard }catch(error) { combo.add(contrung); // IE only } } function buctranhbian() { try{ var violympic = new CompareGame(); var api = new Api(); setTimeout(function(){ api.getGameData(function(data) { violympic.setClass(api.getClasses()); violympic.setLevel(api.getRound()); violympic.setGameId(api.getGameId()); violympic.setUserName(api.getUserName()); violympic.setLang(api.getLang()); violympic.setBaseUrl(api.getSiteDe()); this.ready = true; }); }, 1000); setTimeout(function(){ this.violympic = violympic; this.api = api; }, 2000); setTimeout(function(){ this.api.setTotalScore(100); this.api.setTimeStop("2:44"); this.api.sendTotalUserScore(); }, 3000); } catch(error){ alert("Hack thất bại: "+error); } } function congiap() { try{ var violympic = new MultiChoiceAndEssayGame(); var api = new Api(); setTimeout(function(){ api.getGameData(function(data) { violympic.setClass(api.getClasses()); violympic.setLevel(api.getRound()); violympic.setGameId(api.getGameId()); violympic.setUserName(api.getUserName()); violympic.setLang(api.getLang()); violympic.setBaseUrl(api.getSiteDe()); this.ready = true; }); }, 1000); setTimeout(function(){ this.violympic = violympic; this.api = api; }, 2000); setTimeout(function(){ this.api.setTotalScore(100); this.api.setTimeStop("2:44"); this.api.sendTotalUserScore(); }, 3000); } catch(error){ alert("Hack thất bại:\n"+error); } } function cuocduacuncung() { try{ var violympic = new MultiChoiceGame(); var api = new Api(); setTimeout(function(){ api.getGameData(function(data) { violympic.setClass(api.getClasses()); violympic.setLevel(api.getRound()); violympic.setGameId(api.getGameId()); violympic.setUserName(api.getUserName()); violympic.setLang(api.getLang()); violympic.setBaseUrl(api.getSiteDe()); this.ready = true; }); }, 1000); setTimeout(function(){ this.violympic = violympic; this.api = api; }, 2000); setTimeout(function(){ this.api.setTotalScore(100); this.api.setTimeStop("2:44"); this.api.sendTotalUserScore(); }, 3000); } catch(error){ alert("Hack thất bại: "+error); } } function dapde() { try{ var violympic = new MultiChoiceGame(); var api = new Api(); setTimeout(function(){ api.getGameData(function(data) { violympic.setClass(api.getClasses()); violympic.setLevel(api.getRound()); violympic.setGameId(api.getGameId()); violympic.setUserName(api.getUserName()); violympic.setLang(api.getLang()); violympic.setBaseUrl(api.getSiteDe()); this.ready = true; }); }, 1000); setTimeout(function(){ this.violympic = violympic; this.api = api; }, 2000); setTimeout(function(){ this.api.setTotalScore(100); this.api.setTimeStop("2:44"); this.api.sendTotalUserScore(); }, 3000); } catch(error){ alert("Hack thất bại: "+error); } } function dungdediemroi() { try{ var api = new Api(); setTimeout(function(){ api.setBaseUrl(getParameterFromUrl('site_url')); }, 1000); setTimeout(function(){ ApiConfig.api = api; ApiConfig.api.getGameData(function (data) { ApiConfig.init(data); }); }, 2000); setTimeout(function(){ ApiConfig.api.setTotalScore(100); ApiConfig.api.setTimeStop("2:44"); ApiConfig.api.sendTotalUserScore(); }, 3000); } catch(error){ alert("Hack thất bại: "+error); } } function sapxep() { try{ var violympic = new SortGame(); var api = new Api(); setTimeout(function(){ api.getGameData(function(data) { violympic.setClass(api.getClasses()); violympic.setLevel(api.getRound()); violympic.setGameId(api.getGameId()); violympic.setUserName(api.getUserName()); violympic.setLang(api.getLang()); violympic.setBaseUrl(api.getSiteDe()); this.ready = true; }); }, 1000); setTimeout(function(){ this.violympic = violympic; this.api = api; }, 2000); setTimeout(function(){ this.api.setTotalScore(100); this.api.setTimeStop("2:44"); this.api.sendTotalUserScore(); }, 3000); } catch(error){ alert("Hack thất bại: "+error); } } function timkhobau() { try{ var api = new Api(); setTimeout(function(){ api.setBaseUrl(getParameterFromUrl('site_url')); }, 1000); setTimeout(function(){ ApiConfig.api = api; ApiConfig.api.getGameData(function (data) { ApiConfig.init(data); }); }, 2000); setTimeout(function(){ ApiConfig.api.setTotalScore(100); ApiConfig.api.setTimeStop("2:44"); ApiConfig.api.sendTotalUserScore(); }, 3000); } catch(error){ alert("Hack thất bại: "+error); } } function tranggiay() { try{ window.GetExamScoreAns = function(){ return "3328:[c21cf62e01100b8cc88847ffce7b9a16]3335:[e7de31f3c3a0f5133c09bb6c087dfaec]3329:[ceca981dad7c3517c1f1a5ae7eb1bcc9]3333:[3b167bab152bcd0d22d1b1e48a54d988]3343:[4a6b24075bb6e374a478711cb175ff2a]3337:[8e36f34118828c9c86c373957e1feb47]3338:[9f3d6407fa4916597ea6097769ef4bde]3336:[98de4941bec0ee133070e931f3891bf5]3344:[06cdc25d16c518e37d9eeb625a1e00e6]3347:[5b9abd66c3261beef0d35e2619969957]"; } document.getElementsByClassName("btn btn-submit")[0].click(); } catch(error){ alert("Hack thất bại: "+error); } } createInterface(); document.getElementById("btt").onclick = function() { var e = document.getElementById("combo"); var strUser = e.options[e.selectedIndex].value; switch (strUser) { case "Dapde": dapde(); break; case "Sapxep": sapxep(); break; case "DDDR": dungdediemroi(); break; case "Buctranhbian": buctranhbian(); break; case "Congiap": congiap(); break; case "Timkhobau": timkhobau(); break; case "Cuocduacuncung": cuocduacuncung(); break; case "trieuphu": dapde(); break; case "contrung": dapde(); break; case "tranggiay": tranggiay(); break; } };