Giter Club home page Giter Club logo

Comments (4)

Maasea avatar Maasea commented on July 28, 2024

首先你没有更到最新的sgmodule,同时还需要确保一下脚本的 build 时间是最新的,因为GitHub 缓存的原因更新不太及时。

如果你需要手动修改argument,其中应该不包含{{{}}} 这样的符号,这是surge 本身需要的替换标识符。

另外,json 中的bool类型应是小写

argument="{"lyricLang":"zh-Hans","captionLang":"zh-Hans","blockUpload":false,"immersive":false}"

from sgmodule.

Maasea avatar Maasea commented on July 28, 2024

为了方便你理解给你一个完整的例子:
下面的例子,关闭了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.

Maasea avatar Maasea commented on July 28, 2024

sgmodule 顶部的#!arguments=屏蔽上传按钮:true,屏蔽选段按钮:true,字幕翻译语言:zh-Hans,歌词翻译语言:zh-Hans是为了适配最近 surge TF 版本的新特性,可以长按模块使用输入框的形式修改模块。

见下图:
2024-02-18-21-10-13

from sgmodule.

BugGust avatar BugGust commented on July 28, 2024

为了方便你理解给你一个完整的例子: 下面的例子,关闭了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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.