-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkeep_session_alive.user.js
89 lines (72 loc) · 2.96 KB
/
keep_session_alive.user.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
// ==UserScript==
// @name Keep Session Alive
// @namespace aljgom
// @version 0.1
// @description Prevents session ending
// @author aljgom
// @match https://www.53.com/fifththird/html/session-timeout-warning-update.html
// @match https://www.53.com/fifththird/html/session-timeout-warning.html
// @match https://*.chase.com/*
// @match https://*.discover.com/*
// @match https://online.americanexpress.com/*
// @match https://creditwise.capitalone.com/*
// @match https://my.lendingtree.com/*
// @match https://wwws.mint.com/*
// @match https://online.penfed.org/PenFedOnline/*
// @match https://www.quizzle.com/*
// @match https://tcfbank.com/*
// @match https://digitalbanking.tcfbank.com/*
// @match https://secure.creditsesame.com/*
// @match https://services1.capitalone.com/*
// @match https://services2.capitalone.com/*
// @match https://secure.bankofamerica.com/*
// @match https://myaccounts.capitalone.com/*
// @grant unsafewindow
// ==/UserScript==
/* jshint -W097 */
'use strict';
setInterval(function(){
var w = unsafeWindow;
// gi and gc are defined in this local scope.
function gi(id){ return document.getElementById(id); }
function gc(cl){ return document.getElementsByClassName(cl); }
var button;
//id
// American Express
if( w.session_btn_continue ) w.session_btn_continue.click();
// BoA
if( w.fsd_timeout_okBtn ) { w.fsd_timeout_okBtn[0].click(); }
// Capital One
if( w.timeOutContinue ) w.timeOutContinue.click();
gc('progressive').forEach(e=>{
if(e.innerHTML == "Wait, I'm still here!"){
e.click();
}
})
// Chase
if( w.btnContinue ) w.btnContinue.click(); // Chase homepage
if( w.btnLogIn ) if(w.SessionDialogContainer.style.display !="none") {w.btnLogIn.click();} // Chase ultimate rewards
if( w.requestSessionExtension ) w.requestSessionExtension.click();
// Discover
button = gi("staylogin");
if(button !== null) button.click();
// Mint
button = gi("message-timeout");
if( button !== null && button.style.display !="none") w.alert('timing out');
// TCF
if( w.Ok_Button ) { w.Ok_Button.click(); }
if( gc("btn-send-ping")[0] ) gc("btn-send-ping")[0].click() // digitalbanking.tcf.com
//class
// 5/3
button = gc("ui-button-text")[0];
if(button !== undefined) button.click();
// CreditWise
if( gc("cancel-modal-buttons")[0] ) gc("cancel-modal-buttons")[0].children[0].children[0].click();
// Credit Sesame
if( gc("ui-dialog-buttonpane")[0] ) gc("ui-dialog-buttonpane")[0].children[0].click();
// LendingTree
if( gc("session-timeout ")[0] ) gc("session-timeout ")[0].children[0].children[0].children[2].children[1].click();
// Quizzle
button = gc("primary-button larger-margin-bottom")[0];
if(button !== undefined) button.click();
},25*1000);