Skip to content

Instantly share code, notes, and snippets.

@yrps
Last active September 6, 2016 19:17
Show Gist options
  • Select an option

  • Save yrps/2015139fa43529cf09d09090f14ee4cd to your computer and use it in GitHub Desktop.

Select an option

Save yrps/2015139fa43529cf09d09090f14ee4cd to your computer and use it in GitHub Desktop.
greasemonkey: Stay logged in to the rclouddesktop landing page
// ==UserScript==
// @name rclouddesktop session extender
// @namespace https://github.com/ncoop
// @description Stay logged in to the rclouddesktop landing page
// @homepageURL https://gist.github.com/ncoop/2015139fa43529cf09d09090f14ee4cd
// @include https://rclouddesktop.raytheon.com/Citrix/XenApp1/site/*
// @icon https://gist.githubusercontent.com/ncoop/2015139fa43529cf09d09090f14ee4cd/raw/b0dfe386383487d1e0311dbd47e7dd2367d2eb88/wfica-256.png
// @version 0.2.5
// @grant none
// ==/UserScript==
(function() {
"use strict";
var intervalMinutes = 3;
var cb = resetSessionTimeout;
if (typeof cb == "function") {
var intvId = setInterval(cb, intervalMinutes * 60 * 1000);
console.log("Session refresh ID: " + intvId);
} else {
console.error("Session refresh function unknown.");
}
})();
@RussellSnow
Copy link
Copy Markdown

Where do I put this?

@yrps
Copy link
Copy Markdown
Author

yrps commented Jun 16, 2016

With (grease|tamper)monkey installed and active, click the "Raw" button for the .user.js file. You should get an install prompt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment