Created
June 2, 2020 20:00
-
-
Save cconard96/d2c1cd21ec565fec3567082535cb2c52 to your computer and use it in GitHub Desktop.
Youtube Still Watching
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Youtube Still Watching | |
// @namespace https:github.com/cconard96 | |
// @version 1.0.0 | |
// @description Yes I'm still watching/listening. Updates the last activity variable to the current timestamp every 5 seconds to prevent those "Still watching?" popups that YouTube shows while watching some types of videos (music mainly). | |
// @author Curtis Conard | |
// @match *://www.youtube.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
window.setInterval(function() { | |
if (typeof _lact !== "undefined") { | |
_lact = Date.now(); | |
} | |
}, 5000); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment