yt-activity.user.js 492 B

12345678910111213141516
  1. // ==UserScript==
  2. // @name Youtube Activity Updater
  3. // @namespace Youtube Activity Updater
  4. // @version 1
  5. // @description Automatically updates "user activity" in youtube. Prevents 'Video paused' dialogue.
  6. // @match https://www.youtube.com/*
  7. // @grant none
  8. // ==/UserScript==
  9. (() => {
  10. 'use strict';
  11. if(window._lact_updater) clearTimeout(window._lact_updater);
  12. window._lact_updater = setInterval(() => {
  13. window._lact = Date.now();
  14. }, 300000);
  15. })();