diff --git a/README.md b/README.md index 5fcb0cb..79645f5 100644 --- a/README.md +++ b/README.md @@ -65,12 +65,8 @@ Before you [report an issue](https://github.com/chylex/Userscripts/issues/new) ( <table> <tbody> <tr> - <th width="110px" rowspan="6">YouTube</th> - <td width="325px"><a href="#activity-check-removal">Activity Check Removal</a></td> - <td>Script</td> - </tr> - <tr> - <td><a href="#block-youtube-playlists">Block YouTube Playlists</a></td> + <th width="110px" rowspan="5">YouTube</th> + <td width="325px"><a href="#block-youtube-playlists">Block YouTube Playlists</a></td> <td>Script</td> </tr> <tr> @@ -158,14 +154,6 @@ Overlays Twitch chat over the video to save space. Includes many customizations --- ### YouTube -#### Activity Check Removal -Removes activity check that interrupts video playback. **This script is obsolete**. -\[ [Automatically updated](https://github.com/chylex/Userscripts/raw/master/YouTube/ActivityCheckRemoval.user.js) \] -\- -\[ [Manually updated](https://github.com/chylex/Userscripts/raw/2ddfdcd8cffb796830ff04847f43f2bf91fb0ffc/YouTube/ActivityCheckRemoval.user.js) \] -\- -\[ [Source code](https://github.com/chylex/Userscripts/blob/master/YouTube/ActivityCheckRemoval.user.js) \] - #### Block YouTube Playlists Removes playlists from YouTube video URLs. \[ [Automatically updated](https://github.com/chylex/Userscripts/raw/master/YouTube/BlockPlaylists.user.js) \] diff --git a/YouTube/ActivityCheckRemoval.user.js b/YouTube/ActivityCheckRemoval.user.js deleted file mode 100644 index 372f353..0000000 --- a/YouTube/ActivityCheckRemoval.user.js +++ /dev/null @@ -1,35 +0,0 @@ -// ==UserScript== -// @name YouTube Activity Check Removal -// @description Removes activity check that interrupts video playback. -// @version 1 -// @license MPL-2.0 -// @namespace https://chylex.com -// @homepageURL https://github.com/chylex/Userscripts -// @supportURL https://github.com/chylex/Userscripts/issues -// @include https://youtube.com/* -// @include https://*.youtube.com/* -// @run-at document-end -// @grant none -// @noframes -// ==/UserScript== - -var timeout = 0; - -var check = setInterval(function(){ - if (_yt_www.J){ - clearInterval(check); - - var prev = _yt_www.J; - - _yt_www.J = function(cls){ - if (cls && cls.startsWith("youthere-")){ - return null; - } - - return prev.apply(this, arguments); - }; - } - else if (++timeout > 500){ // average should be about 5-10 - clearInterval(check); - } -}, 1);