Greasy Fork

来自缓存

Greasy Fork is available in English.

Wikitube - YouTube on 维基百科 & 百度百科

Adds relevant YouTube videos to 维基百科 & 百度百科

< 脚本 Wikitube - YouTube on 维基百科 & 百度百科 的反馈

评价:差评 - 脚本失效或无法使用

§
发布于:2025-03-25

Seems to not work correctly when songs include certain things like apostrophes (may be related to the other feedback indicating colons break it)

For example, on the When I'm Gone (song by Katy Perry/Alesso) article, it'll search for "When I" and that's it when you click the YouTube icon in the title. Videos aren't appearing anywhere other than that image.

§
发布于:2025-03-30

That's because the Youtube API key provided in the script is out of quota. You can confirm it here: https://www.googleapis.com/youtube/v3/search?part=snippet&q=YouTube+Data+API&type=video&key=AIzaSyCMR8K-6fANDUBdlbHxFAo57mmlfAnPVFw

If you want it to work, you can provide your own key (it might incur costs) by:

1. Follow the guide and get a YouTube Data API key at https://developers.google.com/youtube/v3/getting-started
2. Put it in the script:

Find this line: const YOUTUBE_DATA_API_CREDENTIAL_1 = 'AIzaSyCMR8K-6fANDUBdlbHxFAo57mmlfAnPVFw';
And replace it with: const YOUTUBE_DATA_API_CREDENTIAL_1 = 'YOUR_CREATED_KEY_SHOULD_GO_HERE';

Remember to replace YOUR_CREATED_KEY_SHOULD_GO_HERE with the key you get from your google cloud console.

发布留言

登录以发布留言。