Comments (4)
首先你没有更到最新的sgmodule,同时还需要确保一下脚本的 build 时间是最新的,因为GitHub 缓存的原因更新不太及时。
如果你需要手动修改argument,其中应该不包含{{{}}} 这样的符号,这是surge 本身需要的替换标识符。
另外,json 中的bool类型应是小写
argument="{"lyricLang":"zh-Hans","captionLang":"zh-Hans","blockUpload":false,"immersive":false}"
from sgmodule.
为了方便你理解给你一个完整的例子:
下面的例子,关闭了Youtube music 的歌词翻译,打开了字幕翻译且翻译语言为简体中文,保留了上传和选段按钮。
youtube.response = type=http-response,pattern=^https:\/\/youtubei\.googleapis\.com\/youtubei\/v1\/(browse|next|player|search|reel\/reel_watch_sequence|guide|account\/get_setting),requires-body=1,max-size=-1,binary-body-mode=1,script-path=https://raw.githubusercontent.com/Maasea/sgmodule/master/Script/Youtube/dist/youtube.response.preview.js,argument="{"lyricLang":"off","captionLang":"zh-Hans","blockUpload":false,"immersive":false}"
from sgmodule.
sgmodule 顶部的#!arguments=屏蔽上传按钮:true,屏蔽选段按钮:true,字幕翻译语言:zh-Hans,歌词翻译语言:zh-Hans
是为了适配最近 surge TF 版本的新特性,可以长按模块使用输入框的形式修改模块。
from sgmodule.
为了方便你理解给你一个完整的例子: 下面的例子,关闭了Youtube music 的歌词翻译,打开了字幕翻译且翻译语言为简体中文,保留了上传和选段按钮。
youtube.response = type=http-response,pattern=^https:\/\/youtubei\.googleapis\.com\/youtubei\/v1\/(browse|next|player|search|reel\/reel_watch_sequence|guide|account\/get_setting),requires-body=1,max-size=-1,binary-body-mode=1,script-path=https://raw.githubusercontent.com/Maasea/sgmodule/master/Script/Youtube/dist/youtube.response.preview.js,argument="{"lyricLang":"off","captionLang":"zh-Hans","blockUpload":false,"immersive":false}"
好的,谢谢dalao了,更新了下外部资源就好了,之前为了修改上传按钮把模块copy到本地了,现在不需要了,我这边没在TF版,所以不清楚新加的特性😂
from sgmodule.
Related Issues (20)
- 小火箭油管去广告-视频开头广告有时可以有时不行 HOT 9
- 油管视频pip部分失效 HOT 2
- youtube脚本出现无法加载评论和推荐视频的情况 HOT 1
- YouTube module is not working HOT 1
- 关于最近一些奇怪的现象,来汇报一下 HOT 6
- YouTube看直播时出现大量RangeError日志 HOT 1
- QX failed to update with Parser HOT 1
- Youtube转圈
- YouTube播放页面有遗漏的广告 HOT 2
- Youtube Module not working! HOT 6
- QuantuX添加模块,报错 HOT 5
- What does these two rules mean? HOT 5
- Processing browse request throws Error: illegal tag: field no 3 wire type 7 HOT 2
- youtube字幕默认开启的问题 HOT 2
- PIP and background play on YouTube not working? HOT 5
- 更新YouTube版本,发现v1/get_watch HOT 6
- IOS Youtube app最新版本19.23.3小火箭去广告问题 HOT 5
- 可以添加自动字幕么
- Surge tv 作为旁路由,开启模块后电脑无法访问 youtube 视频
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sgmodule.