From 96a9f6cd097fe8b380a236f0a18764e75a31ab4d Mon Sep 17 00:00:00 2001 From: Virgil Clyne Date: Wed, 27 Nov 2024 16:01:58 +0800 Subject: [PATCH] fix: template --- template/egern.handlebars | 131 -------------------------------------- template/stash.handlebars | 5 +- 2 files changed, 1 insertion(+), 135 deletions(-) delete mode 100644 template/egern.handlebars diff --git a/template/egern.handlebars b/template/egern.handlebars deleted file mode 100644 index 2822d54..0000000 --- a/template/egern.handlebars +++ /dev/null @@ -1,131 +0,0 @@ -name: '{{@package 'displayName'}}' -description: '{{inline (@package 'description')}}' -open_url: '{{@package 'openUrl'}}' -author: '{{@package 'contributors'}}' -homepage: '{{@package 'homepage'}}' -icon: '{{@package 'icon'}}' -date: '{{now "yyyy-MM-dd HH:mm:ss"}}' -version: '{{@package 'version'}}' -scriptings: -- http_request: - name: 📺 BiliBili.Global.bangumi.play.html - match: ^https?:\/\/www\.bilibili\.com\/bangumi\/play\/(ss|ep)\d+\/? - script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js - arguments: - _compat.$argument: '' -- http_request: - name: 📺 BiliBili.Global.viewunite.v1.View.grpc - match: ^https?:\/\/(grpc|app)\.bili(bili\.com|api\.net)\/bilibili\.app\.viewunite\.v1\.View\/View$ - script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js - arguments: - _compat.$argument: '' - body_required: true - binary_body: true -- http_response: - name: 📺 BiliBili.Global.viewunite.v1.View.grpc - match: ^https?:\/\/(grpc|app)\.bili(bili\.com|api\.net)\/bilibili\.app\.viewunite\.v1\.View\/View$ - script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/response.bundle.js - arguments: - _compat.$argument: '' - body_required: true - binary_body: true -- http_request: - name: 📺 BiliBili.Global.season.json - match: ^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/view\/(v2\/app|web|pc)\/season\? - script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js - arguments: - _compat.$argument: '' -- http_response: - name: 📺 BiliBili.Global.season.json - match: ^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/view\/(v2\/app|web|pc)\/season\? - script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/response.bundle.js - arguments: - _compat.$argument: '' - body_required: true -- http_request: - name: 📺 BiliBili.Global.playerunite.v1.Player.grpc - match: ^https?:\/\/(grpc|app)\.bili(bili\.com|api\.net)\/bilibili\.app\.playerunite\.v1\.Player\/PlayViewUnite$ - script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js - arguments: - _compat.$argument: '' - body_required: true - binary_body: true -- http_request: - name: 📺 BiliBili.Global.player.v2.PlayURL.grpc - match: ^https?:\/\/(grpc|app)\.bili(bili\.com|api\.net)\/bilibili\.pgc\.gateway\.player\.v2\.PlayURL\/PlayView$ - script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js - arguments: - _compat.$argument: '' - body_required: true - binary_body: true -- http_request: - name: 📺 BiliBili.Global.player.playurl.json - match: ^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/player\/(api|web)\/playurl(\/html5)?\? - script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js - arguments: - _compat.$argument: '' -- http_request: - name: 📺 BiliBili.Global.player.v2.playurl.json - match: ^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/player\/web\/v2\/playurl\? - script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js - arguments: - _compat.$argument: '' -- http_request: - name: 📺 BiliBili.Global.search.html - match: ^https?:\/\/search\.bilibili\.com\/all\? - script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js - arguments: - _compat.$argument: ' -- http_request: - name: 📺 BiliBili.Global.search.grpc - match: ^https?:\/\/(grpc|app)\.bili(bili\.com|api\.net)\/bilibili\.polymer\.app\.search\.v1\.Search\/(SearchAll|SearchByType)$ - script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js - arguments: - _compat.$argument: '' - body_required: true - binary_body: true -- http_request: - name: 📺 BiliBili.Global.search.app.json - match: ^https?:\/\/app\.bili(bili\.com|api\.net)\/x\/v2\/search(\/type)?\? - script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js - arguments: - _compat.$argument: '' -- http_request: - name: 📺 BiliBili.Global.search.wbi.json - match: ^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/web-interface\/wbi\/search\/(all\/v2|type)\? - script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js - arguments: - _compat.$argument: '' -- http_request: - name: 📺 BiliBili.Global.search.pc.json - match: ^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/web-interface\/search\/(all\/v2|type)\? - script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js - arguments: - _compat.$argument: '' -- http_request: - name: 📺 BiliBili.Global.space.app.json - match: ^https?:\/\/app\.bili(bili\.com|api\.net)\/x\/v2\/space\? - script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js - arguments: - _compat.$argument: '' -- http_request: - name: 📺 BiliBili.Global.space.wbi.json - match: ^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/space\/wbi\/acc\/info\? - script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js - arguments: - _compat.$argument: '' -- http_request: - name: 📺 BiliBili.Global.space.pc.json - match: ^https?:\/\/api\.bili(bili\.com|api\.net)\/x\/space\/acc\/info\? - script_url: https://github.com/BiliUniverse/Global/releases/download/v{{@package 'version'}}/request.bundle.js - arguments: - _compat.$argument: '' -mitm: - hostnames: - - www.bilibili.com - - search.bilibili.com - - app.bilibili.com - - app.biliapi.net - - api.bilibili.com - - api.biliapi.net - - grpc.biliapi.net diff --git a/template/stash.handlebars b/template/stash.handlebars index 5ca2c73..c17fbac 100644 --- a/template/stash.handlebars +++ b/template/stash.handlebars @@ -27,11 +27,11 @@ http: - match: ^https?:\/\/www\.bilibili\.com\/bangumi\/play\/(ss|ep)\d+\/? name: 📺 BiliBili.Global.request type: request - timeout: 15 argument: - match: ^https?:\/\/(grpc|app)\.bili(bili\.com|api\.net)\/bilibili\.app\.viewunite\.v1\.View\/View$ name: 📺 BiliBili.Global.request type: request + require-body: true binary-mode: true argument: - match: ^https?:\/\/(grpc|app)\.bili(bili\.com|api\.net)\/bilibili\.app\.viewunite\.v1\.View\/View$ @@ -66,7 +66,6 @@ http: - match: ^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/player\/(api|web)\/playurl(\/html5)?\? name: 📺 BiliBili.Global.request type: request - require-body: false argument: - match: ^https?:\/\/api\.bili(bili\.com|api\.net)\/pgc\/player\/web\/v2\/playurl\? name: 📺 BiliBili.Global.request @@ -81,8 +80,6 @@ http: - match: ^https?:\/\/search\.bilibili\.com\/all\? name: 📺 BiliBili.Global.request type: request - require-body: false - timeout: 15 argument: - match: ^https?:\/\/app\.bili(bili\.com|api\.net)\/x\/v2\/search(\/type)?\? name: 📺 BiliBili.Global.request