Greasy Fork is available in English.

Youtube Auto Quick Buffer

Quickens the bufferer on all Youtube videos

< 脚本Youtube Auto Quick Buffer的反馈

评价:好评 - 脚本一切正常

§
发表于:2021-05-01

hey dude, i fixed your problem with how it kept infinitely reloading the website the video was playing on.

simple fix really, you just forgot to type "true" in a few areas. might also want to say that you need to enable all the compatibility options and run it at document start in order for everything to work as intended.

here's a paste of the code / script.

// ==UserScript==
// @name Youtube Auto Quick Buffer
// @namespace https://greasyfork.org/en/users/8935-daniel-jochem?sort=ratings
// @description Quickens the bufferer on all Youtube videos
// @include https://www.youtube.com/watch?*
// @grant none
// @run-at document-end
// @version 1.4
// ==/UserScript==

// reload script on page change using spf events (normal youtube)
window.addEventListener("spfdone", function() {
main();
});

// reload script on page change using youtube polymer fire events (material youtube)
window.addEventListener("yt-page-data-updated", function() {
main();
});

main();

function main() {
if (isPlayerAvailable()) { true
if (document.URL.indexOf("&gl=CA") === -1) { true
window.location = document.URL + "&gl=CA";
}
}
}

function isPlayerAvailable() { // true if a youtube video is available ( false if live video)
return /https:\/\/www\.youtube\.com\/watch\?v=.*/.test(document.location.href) && document.getElementById('live-chat-iframe') === true;
}

Deleted user 103157
§
发表于:2021-05-27

Thank you

§
发表于:2021-07-01

Figured out where to change document start, but where do we do this "enable all the compatibility options"? I'm using Violentmonkey.

§
发表于:2021-07-01
Figured out where to change document start, but where do we do this "enable all the compatibility options"? I'm using Violentmonkey.

i do not know how things are in violentmonkey, since i use tampermonkey. however in tampermonkey, after you click the userscript's edit option, you then go to the tab where it says settings, and then you scroll down to where the compatibility options are, and simply turn them on. so if violentmonkey is similar in how it works, you may be able to do it the same way on there. - sorry i couldn't be of more assistance to you.

§
发表于:2021-07-01

here's an photo to help out.

§
发表于:2021-07-01

- i unchecked one of them to show how you turn them on and off.

§
发表于:2022-09-14

so for the compatability gfx options apply, fix and convert should be on and replace should be off correct? just like your image?

§
发表于:2022-09-14

so for the compatibility gfx options apply, fix and convert should be on and replace should be off correct? just like your image?

the off one was purely for demonstration purposes, just turn them all on.

发表回复

登录以发表回复。