Created
February 16, 2024 10:54
-
-
Save vittodevit/a8ddf02fd917c34dcee9d60d72eb8337 to your computer and use it in GitHub Desktop.
Cheats per DriveLab (drivelab.it)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// con un plugin injector aggiungi al dominio, enjoy! | |
// aggiunge risposta automatica e reset dello stato della spiegazione | |
exam = `pol_all_uni.php`; | |
id = "spiegazione"; | |
stiliextra = `#respiega { | |
width: 150px; | |
height: 40px; | |
line-height: 38px; | |
float: left; | |
margin: 5px 5px 5px 5px; | |
font-size: 15px; | |
font-weight: bold; | |
color: #FFF; | |
background: #FF00FF; | |
border-radius: 10px; | |
text-align: center; | |
cursor: pointer; | |
} | |
#autoans { | |
width: 90px; | |
height: 40px; | |
line-height: 38px; | |
float: left; | |
margin: 5px 5px 5px 5px; | |
font-size: 15px; | |
font-weight: bold; | |
color: #FFF; | |
background: #00AA00; | |
border-radius: 10px; | |
text-align: center; | |
cursor: pointer; | |
}`; | |
const injectCSS = css => { | |
let el = document.createElement('style'); | |
el.type = 'text/css'; | |
el.innerText = css; | |
document.head.appendChild(el); | |
return el; | |
}; | |
element = document.createElement("div"); | |
element.appendChild( | |
document.createTextNode("reset_spiegazione") | |
); | |
element.id = "respiega"; | |
element.onclick = reset_spiega; | |
element2 = document.createElement("div"); | |
element2.appendChild( | |
document.createTextNode("autoans") | |
); | |
element2.id = "autoans"; | |
element2.onclick = autoans; | |
function reset_spiega(){ | |
ind_dom=parseInt(document.getElementById('ind_dom').innerHTML); | |
document.getElementById('vfd'+ind_dom).value = "A"; | |
} | |
function autoans(){ | |
ind_dom=parseInt(document.getElementById('ind_dom').innerHTML); | |
sel_and_next( | |
document.getElementById("esa" + ind_dom).value | |
) | |
} | |
// LOAD INJECTOR ONLY IN EXAM | |
if (window.location.href.includes(exam)) { | |
injectCSS(stiliextra) | |
document.getElementById(id).insertAdjacentElement('afterend', element) | |
document.getElementById(id).insertAdjacentElement('afterend', element2) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment