Last active
December 31, 2023 06:44
-
-
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à✨
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
// 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
Sangad-sangad usefull