Created
September 30, 2021 16:20
-
-
Save jeremysimmons/4c0a4c084b8a30164aaab4399c22f629 to your computer and use it in GitHub Desktop.
Automatically dismiss CheckPoint access warning pages
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
// ==UserScript== | |
// @name Dismiss Checkpoint Access Warning | |
// @namespace checkpoint | |
// @version 1 | |
// @description automatically dismiss the checkpoint access pages so I don't have to. | |
// @author Jeremy Simmons | |
// @match *://10.2.1.4/* | |
// @grant none | |
// @run-at document-idle | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
window.addEventListener('load', function() { | |
if(document.title.startsWith('Check Point')) { | |
var button = document.getElementById('UserCheck_OK_Button_span'); | |
if(!button) { | |
console.log('sorry, cannot find the checkpoint OK button'); | |
} else { | |
console.log('found a checkpoint ok button. clicking to automatically dismiss.'); | |
button.click(); | |
} | |
} | |
}, false); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment