Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cconard96/d2c1cd21ec565fec3567082535cb2c52 to your computer and use it in GitHub Desktop.
Save cconard96/d2c1cd21ec565fec3567082535cb2c52 to your computer and use it in GitHub Desktop.
Youtube Still Watching
// ==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