-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptOut.js
32 lines (23 loc) · 930 Bytes
/
optOut.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
29
30
31
32
$(document).ready(function () {
var clickOff = document.getElementById('section_header')
var dispatchMouseEvent = function(target, var_args) {
var e = document.createEvent("MouseEvents");
e.initEvent.apply(e, Array.prototype.slice.call(arguments, 1))
target.dispatchEvent(e)
};
function clickOpt() {
var optCheckBoxOuter = document.getElementById('00NG000000COwcZ_chkbox')
dispatchMouseEvent(optCheckBoxOuter, 'dblclick', true)
var optCheckBoxInner = document.getElementById('00NG000000COwcZ')
optCheckBoxInner.click()
clickOff.click()
}
function fillReason() {
var reasonBox = document.getElementById('00N1600000FFuMr_ilecell')
dispatchMouseEvent(reasonBox, 'dblclick', true)
$( "#00N1600000FFuMr").val('Strikeout emails often cause confusion.')
clickOff.click()
}
clickOpt()
fillReason()
});