ingress-intel-total-conversion/plugins/periodic-refresh.user.js
fkloft eba7d388a0 Enable IITC on mission permalink
Hint: to change a lot of scripts, execute this:

    sed -r '/\/\/ @match\s+http:\/\/www.ingress.com\/intel/r /tmp/includefile' -i~ *.user.js

`/tmp/includefile` should contain these lines: (no trailing newline!)

    // @include        https://www.ingress.com/mission/*
    // @include        http://www.ingress.com/mission/*
    // @match          https://www.ingress.com/mission/*
    // @match          http://www.ingress.com/mission/*
2015-04-13 17:28:30 +02:00

46 lines
1.4 KiB
JavaScript

// ==UserScript==
// @id iitc-plugin-periodic-refresh
// @name IITC plugin: Periodic refresh
// @category Tweaks
// @version 0.1.0.@@DATETIMEVERSION@@
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
// @updateURL @@UPDATEURL@@
// @downloadURL @@DOWNLOADURL@@
// @description For use for unattended display screens only, this plugin causes idle mode to be left once per hour.
// @include https://www.ingress.com/intel*
// @include http://www.ingress.com/intel*
// @match https://www.ingress.com/intel*
// @match http://www.ingress.com/intel*
// @include https://www.ingress.com/mission/*
// @include http://www.ingress.com/mission/*
// @match https://www.ingress.com/mission/*
// @match http://www.ingress.com/mission/*
// @grant none
// ==/UserScript==
@@PLUGINSTART@@
// PLUGIN START ////////////////////////////////////////////////////////
window.plugin.periodicRefresh = function() {};
window.plugin.periodicRefresh.wakeup = function() {
console.log('periodicRefresh: timer fired - leaving idle mode');
idleReset();
}
window.plugin.periodicRefresh.setup = function() {
var refreshMinutes = 60;
setInterval ( window.plugin.periodicRefresh.wakeup, refreshMinutes*60*1000 );
};
var setup = window.plugin.periodicRefresh.setup;
// PLUGIN END //////////////////////////////////////////////////////////
@@PLUGINEND@@