-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.js
28 lines (26 loc) · 831 Bytes
/
run.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// ==UserScript==
// @name AutoSurvey
// @namespace http://tampermonkey.net/
// @version 2.0
// @description Auto Survey Script!
// @author rlzmtnck <[email protected]>
// @match https://igracias.telkomuniversity.ac.id/survey/*
// @grant none
// @require http://code.jquery.com/jquery-3.3.1.min.js
// ==/UserScript==
/* globals jQuery, $, waitForKeyElements */
(function() {
'use strict';
var multi = 'Sangat Penting';
var option = 'Ya';
$('.answerlist1:contains('+multi+'), .answerlist1:contains('+option+')').each(function(){
$(this).parent().each(function(){
$(this).find('.answerlist2').children().click()
})
});
$("input[class='opt']").each(( idx, data )=>{
if(idx%10===9){
data.checked = true
}
});
})();