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 Viet // @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://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 "15393:[1abee8aeb19bff65f76fddd32e6098bd]15391:[0fffc305055fc6bffd2a39949dd8625a]15396:[5a6b3c1e11295eaf7d4472a22495eb52]15390:[f89fbc4447c93b6363bcf10edd5b5d4c]15405:[c0bd6e47baaf76c717b4a032a13356b0]15400:[20ed4067a809ee8828817f32045db7fc]15407:[5a6b3c1e11295eaf7d4472a22495eb52]15417:[f8f29898df7c7e71cfa528291600d06e]15412:[330c473ab8dc4363b9f0b67bddc55fb5]15415:[a4e7a49bcbd1b581f017dec5fbface04]"; } 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; } };