NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Hack violympic Vat ly // @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://vatly.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 "15920:[8158691381a94e7d13789fa49057de04]15919:[70598fc3d201ce41225f33c364c84489]15921:[ec61826546d1cc4bef755039348be98f]15925:[df002be2347c93f649b704c8740786a0]15932:[1d3a2a149f4d30a848fa70c4a6eb7e0b]15933:[79400e9960467e4c0f2ffb85e59a7c14]15927:[62f2271133b2cc4ebaab6ae57c21dca8]15930:[d1a3eb624ae1a56a8bc59b95fa20ecb9]15938:[ea1da86b87994eea0426e56d73959914]15940:[ef7452f9cecf966212eb24c2f8799688]"; } 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; } };