Skip to content

Instantly share code, notes, and snippets.

@yrps
Last active September 6, 2016 19:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yrps/6a3ffe9b22e125015deeb025b4585fb8 to your computer and use it in GitHub Desktop.
Save yrps/6a3ffe9b22e125015deeb025b4585fb8 to your computer and use it in GitHub Desktop.
greasemonkey: Stay logged in to the webvpn landing page
// ==UserScript==
// @name webvpn session extender
// @namespace https://github.com/ncoop
// @description Stay logged in to the webvpn landing page
// @homepageURL https://gist.github.com/ncoop/6a3ffe9b22e125015deeb025b4585fb8
// @include https://webvpn.raytheon.com/dana/home/index.cgi
// @icon https://gist.githubusercontent.com/ncoop/6a3ffe9b22e125015deeb025b4585fb8/raw/726136f10feafb28c8aa81fa8a31033b9ff1d4a1/wfica-mod.png
// @version 0.2.4
// @grant none
// ==/UserScript==
(function() {
"use strict";
var intervalMinutes = 10;
var intvId = setInterval(function() {
location.reload();
}, intervalMinutes * 60 * 1000);
console.log("Session refresh ID: " + intvId);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment