Keep alive and lock script
It would be nice if this was integrated into the system by default.
// ==UserScript==
// @name KeepAlive and Lock
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://palafoxcomputers.repairshopr.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var hasMoved = false,
isLocked = false,
$comBo = $("#comment_body"),
$comBoVal;
$comBo.keydown(function(){
if($comBo.val().length >= 1){
}
});
var moved = false
window.onmousemove = function(e){
if(!hasMoved){
hasMoved = true;
}
}
function checkActive(){
console.log("Checking Movement");
console.log("hasMoved"+hasMoved);
if(!hasMoved && !isLocked){
lockScreenAndPinSwitch();
clearInterval(cheAct);
}else{
hasMoved = false;
}
}
function keepAlive(){
console.log("Keep Alive");
$.ajax({url:"https://palafoxcomputers.repairshopr.com/"});
}
setInterval(function(){keepAlive();},120000);
var cheAct = setInterval(function(){checkActive();},120000);
})();
1
vote
Donnie Archer
shared this idea