Skip to content

Instantly share code, notes, and snippets.

@omanfathurrahman
Forked from glenkusuma/igracias_edom.js
Created December 21, 2023 14:22
Show Gist options
  • Save omanfathurrahman/5cb4373ec77ab775040ac475f96436df to your computer and use it in GitHub Desktop.
Save omanfathurrahman/5cb4373ec77ab775040ac475f96436df to your computer and use it in GitHub Desktop.
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();}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment