1
0
mirror of https://github.com/chylex/Userscripts.git synced 2025-04-10 03:15:42 +02:00

Remove 'YouTube Activity Check Removal'

This commit is contained in:
chylex 2025-03-24 01:14:54 +01:00
parent de4fa3b7a5
commit 7319ee255e
Signed by: chylex
SSH Key Fingerprint: SHA256:WqM8X/1DDn11LbYM0H5wsqZUjbcKxVsic37L+ERcF4o
2 changed files with 2 additions and 49 deletions

View File

@ -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) \]

View File

@ -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);