YePpHa / YouTubeCenter

YouTube Center is a userscript designed to expand the functionality of YouTube. It includes the ability to download the video you're watching, auto selecting your preferred video quality and much more.
MIT License
2.89k stars 519 forks source link

How do I exclude from a website altogether? #1821

Open root-reindeer-flotilla opened 9 years ago

root-reindeer-flotilla commented 9 years ago

I always get a "he's dead jim" when an internet forum embeds youtube videos. This only happens on tampermonkey and youtube center. My question is, how do I stop youtube center from running at all on this website?

I've tried to "exclude" it using website.com/* http://website.com/* and all other variations I can think of.

This is why I don't like using the tampermonkey version.

Tampermonkey started vbulletin-core.js:11 This browser is AJAX compatible showthread.php:144 GET http://www.google-analytics.com/ga.js net::ERR_BLOCKED_BY_CLIENT(anonymous function) @ showthread.php:144(anonymous function) @ showthread.php:145 (program):2 Tampermonkey started (program):26721 Domain registered www.youtube.com. (program):26724 cookie YouTubeCenter.js:24087 'CanvasRenderingContext2D.webkitImageSmoothingEnabled' is deprecated. Please use 'CanvasRenderingContext2D.imageSmoothingEnabled' instead. (program):2 Tampermonkey started (program):26721 Domain registered www.youtube.com. (program):26724 cookie (program):2 Tampermonkey started (program):26721 Domain registered www.youtube.com. (program):26724 cookie (program):2 Tampermonkey started (program):26721 Domain registered www.youtube.com. (program):26724 cookie (program):2 Tampermonkey started vbulletin-core.js:11 Firing System Init (program):26721 Domain registered www.youtube.com. (program):26724 cookie (program):2 Tampermonkey started (program):26721 Domain registered www.youtube.com. (program):26724 cookie YouTubeCenter.js:2049 [Property Wrapper] Wrapping the function undefined into a function wrapper. YouTubeCenter.js:2049 [Property Wrapper] Property doesn't exists in parent, attaching trigger usinggetter and setter. YouTubeCenter.js:2049 [Property Wrapper] Wrappingcreatefunction in a wrapper. YouTubeCenter.js:2049 [Embed] YouTube has called writeEmbed. YouTubeCenter.js:2049 [Embed] Checking if YouTube and YouTube Center Developer Build are ready... YouTubeCenter.js:2049 [Embed] They're both not ready yet! (program):2 Tampermonkey started (program):26721 Domain registered www.youtube.com. (program):26724 cookie YouTubeCenter.js:2049 [Property Wrapper] Wrapping the function undefined into a function wrapper. YouTubeCenter.js:2049 [Property Wrapper] Wrappingcreatefunction in a wrapper. YouTubeCenter.js:2049 [Player modifyConfig] => embed YouTubeCenter.js:2049 [Player Type] HTML5 YouTubeCenter.js:2049 [HTML5 Player] Setting player theme to dark YouTubeCenter.js:2049 [HTML5 Player] Setting player progress color to red YouTubeCenter.js:2049 [Embed] writeEmbed has been leaked to YouTube Center Developer Build. YouTubeCenter.js:2049 [Embed] YouTube has called writeEmbed. YouTubeCenter.js:2049 [Embed] Checking if YouTube and YouTube Center Developer Build are ready... YouTubeCenter.js:2049 [Embed] They're both not ready yet! www-embed-player.js:169 GET chrome-extension://boadgeojelhgndaghljhdicfkmllpafd/cast_sender.js net::ERR_FAILEDtk @ www-embed-player.js:169sk @ www-embed-player.js:169rk @ www-embed-player.js:169uk @ www-embed-player.js:170om @ www-embed-player.js:222Dp @ www-embed-player.js:315Dr @ www-embed-player.js:353(anonymous function) @ u7rTzaMtpWc:10 (program):2 Tampermonkey started (program):26721 Domain registered www.youtube.com. (program):26724 cookie YouTubeCenter.js:2049 [Property Wrapper] Wrapping the function undefined into a function wrapper. YouTubeCenter.js:2049 [Property Wrapper] Wrappingcreatefunction in a wrapper. YouTubeCenter.js:2049 [Player modifyConfig] => embed YouTubeCenter.js:2049 [Player Type] HTML5 YouTubeCenter.js:2049 [HTML5 Player] Setting player theme to dark YouTubeCenter.js:2049 [HTML5 Player] Setting player progress color to red (program):2 Tampermonkey started (program):26721 Domain registered www.youtube.com. (program):26724 cookie YouTubeCenter.js:2049 [Property Wrapper] Wrapping the function undefined into a function wrapper. YouTubeCenter.js:2049 [Property Wrapper] Wrappingcreatefunction in a wrapper. YouTubeCenter.js:2049 [Player modifyConfig] => embed YouTubeCenter.js:2049 [Player Type] HTML5 YouTubeCenter.js:2049 [HTML5 Player] Setting player theme to dark YouTubeCenter.js:2049 [HTML5 Player] Setting player progress color to red YouTubeCenter.js:2049 [Embed] writeEmbed has been leaked to YouTube Center Developer Build. YouTubeCenter.js:2049 [Embed] YouTube has called writeEmbed. YouTubeCenter.js:2049 [Embed] Checking if YouTube and YouTube Center Developer Build are ready... YouTubeCenter.js:2049 [Embed] They're both not ready yet! (program):2 Tampermonkey started (program):26721 Domain registered www.youtube.com. (program):26724 cookie YouTubeCenter.js:2049 [Property Wrapper] Wrapping the function undefined into a function wrapper. YouTubeCenter.js:2049 [Property Wrapper] Wrappingcreatefunction in a wrapper. YouTubeCenter.js:2049 [Player modifyConfig] => embed YouTubeCenter.js:2049 [Player Type] HTML5 YouTubeCenter.js:2049 [HTML5 Player] Setting player theme to dark YouTubeCenter.js:2049 [HTML5 Player] Setting player progress color to red VM3383:2 Tampermonkey started

Console for reference, it loads each embed SLOWLY and then crashes 90% of the time. I just want to turn it off for this website.

SuperSajuuk commented 9 years ago

The crash happens if there are too many embeds on a single page. There is no way to exclude a site from the extension, as far as I am aware: the best thing is to load less posts per page so less embeds are on a single page and hide things like signatures (some forums allow users to embed videos into their signatures, which can kill browser experiences).

Zerathos commented 9 years ago

It can be fixed when Google gets their head out of their ass and lets YTC on the extension repository or makes it easier to load third-party extensions. That or you can turn off embed support in YTC's settings so it won't touch them, thus preventing it from loading a bunch of times on a single page and causing a ton of overhead.

I usually just click Tampermonkey's icon and disable the script temporarily if I run into a page with a lot of embeds on it, but if you're visiting pages that are full of embeds often it might be easier just to turn off embed support entirely. And again, the extension version handles this much better, but trying to get it to run in Chrome on Windows (and Firefox is going to go this way soon too, ugh) is a real pain.

2sjha commented 6 years ago

@Zerathos how do i turn off embed support?