// ==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); })();