Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Stay logged in
// @version 1
// @grant none
// @include https://www.example.com/*
// ==/UserScript==
function keepalive() {
//console.log('Sending HTTP HEAD request to: ' + location.href);
var req = new XMLHttpRequest();