Skip to content

Instantly share code, notes, and snippets.

@glenkusuma
Last active December 31, 2023 06:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save glenkusuma/9b9a9940cffa33a5e7ba0eb3e22e5725 to your computer and use it in GitHub Desktop.
Save glenkusuma/9b9a9940cffa33a5e7ba0eb3e22e5725 to your computer and use it in GitHub Desktop.
igrasias edom script - feelin lazy pressin all the input form in igracias edom? just copy and paste this javascript into your dev tool console! let the javascript magic do it's thing and voilà✨
// igrasias edom script version 18/01/23
// presses all radio button inputs with a value of 'Sangat Puas'
var opt = document.getElementsByClassName("opt");
for(var i = 0; i < opt .length; i++){
if(opt [i].parentElement.nextElementSibling.innerHTML === 'Sangat puas'){
opt [i].click();
}
}
// if there is a text field, gives the text field value with invisible space
if (document.querySelector('textarea')) {
document.querySelector('textarea').value = 'ㅤ'; // invisible space
}
// Pressing the submit button based on availability, pressing the last submit button whenever it's available
var floatL3 = document.querySelector('.floatL3');
var floatL4 = document.querySelector('.floatL4');
if(floatL4){
floatL4.click();
}else{
floatL3.click();}
@omanfathurrahman
Copy link

Sangad-sangad usefull

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment