Skip to content

Commit f42ff22

Browse files
committed
feat(porntube): 视频页内选播放器,修复注入不生效
- 视频页下方加播放器行:网页播放、lenna / SenPlayer / Infuse / VLC,「更多」里其它播放器,可选自定义 scheme - 隐藏原线路切换按钮,删除促销弹窗 - 修复 $done 的 status 为字符串导致 Surge 忽略修改后的页面响应,改为数字 - 页面请求脚本去掉 If-Modified-Since / If-None-Match:源站回 304 时没有 body,无法注入 - 注入后的页面返回 Cache-Control: no-store - 通知跳转默认关(Surge / Loon 模块参数默认 no) - 清理注释,QX 配置去掉注释行
1 parent 46e5b59 commit f42ff22

14 files changed

Lines changed: 203 additions & 50 deletions

‎porntube/README.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ https://raw.githubusercontent.com/Yu9191/Rewrite/refs/heads/main/porntube/module
3030
- VIP 视频解锁:拦截 `/sevenVideos/<id>`,把 `views` 置 0、`videoType=cvideo` 改为 `tvideo`,绕过 VIP 弹窗与 120 秒预览限制
3131
- 完整 m3u8:后端不校验登录态,所有线路返回的 m3u8 都可直接播放
3232
- 列表 / 相关视频清理:清掉列表项里的 `cvideo / isPaid / premium` 标记
33-
- 去广告:清空 `/getAdsList` 所有条目,前端广告位变空
33+
- 去广告:清空 `/getAdsList` 所有条目,前端广告位变空;视频页的限时促销弹窗(`.promo-modal`)直接删掉
3434
- 重定向白名单清理:从 `/getWhitelist` 删除 `redirect_ / ad_ / popup_ / banner` 等推广跳转项
3535
- 用户提权:`/sevenVideoUserSH` 等接口的 `activeUntil` 推到 2100,`isPremium / vip / premium` 置 true
3636
- 前端伪登录:注入伪 `SevenVideoUser` localStorage,解决高速线路按钮无法切换、顶部「立刻开启 VIP 会员体验」横幅、每日 5 次试看上限三个前端拦截
37+
- 视频页播放器按钮:视频下方直接选「网页播放」或外部播放器(lenna / SenPlayer / Infuse / VLC,「更多」里还有 Fileball 等),点哪个用哪个,不需要打开 BoxJS。原「切换线路」按钮已隐藏,默认走免费线路;`src/config/index.mjs` 的 `HIDE_LINE_SWITCHER` 设为 `false` 可恢复显示。填了自定义 scheme(模块参数或 BoxJS)后,播放器行里还会多出一个「自定义」按钮
3738

3839
</details>
3940

@@ -70,6 +71,8 @@ https://raw.githubusercontent.com/Yu9191/Rewrite/refs/heads/main/pear.boxjs.json
7071
| `porntube_log_level` | 日志级别:`off` / `error` / `warn` / `info` / `debug` / `all` |
7172

7273
> Quantumult X / Snippet 用户的日志级别 **只能走 BoxJS 设置**(rewrite_local 段不支持 argument)。Surge / Loon 既可以在模块的 `arguments` 里改,也可以走 BoxJS。
74+
>
75+
> `porntube_player_select`、`porntube_custom_scheme`、`porntube_url_encode` 只决定通知跳转用哪个播放器(需要 `porntube_player_jump` 设为 `yes`;默认是 `no`,即关闭通知);视频页的播放器按钮不读这些设置。
7376
7477
</details>
7578

‎porntube/dist/porntube-frontend.js‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/* porntube-page-request.js - Build 2026-11-14 12:53:02 */
2+
!function(){"use strict";const e={...$request.headers||{}};for(const t of Object.keys(e))/^if-(modified-since|none-match)$/i.test(t)&&delete e[t];$done({headers:e})}();

‎porntube/dist/porntube.js‎

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎porntube/modules/porntube.conf‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,9 @@
44
#!homepage=https://github.com/Yu9191/Rewrite
55

66
[rewrite_local]
7-
# 请求阶段: 去假 auth + 标记路由
87
^https?:\/\/v2\.(?:cdn199\.com|kekecdn\.net|luchu\.org|madou\.ws|papapa\.biz|tianmtv\.com|xiaoshuo\.info|xiaoshuo\.la)\/js url script-request-body https://raw.githubusercontent.com/Yu9191/Rewrite/refs/heads/main/porntube/dist/porntube-request.js
9-
# API 拦截
108
^https?:\/\/v2\.(?:cdn199\.com|kekecdn\.net|luchu\.org|madou\.ws|papapa\.biz|tianmtv\.com|xiaoshuo\.info|xiaoshuo\.la)\/js url script-response-body https://raw.githubusercontent.com/Yu9191/Rewrite/refs/heads/main/porntube/dist/porntube.js
11-
12-
# 前端处理
9+
^https?:\/\/(?:porntube\.(?:cool|fit|site|store)|91porn\.(?:coach|top|band|name|plus|porn|red|sex)|91pornny\.com|91\.wtf|91forum\.com|91dabiaojie\.com|91zpc\.(?:app|pro|org|co|com)|chineseselfie\.(?:com|net|org)|xchina\.(?:day|cloud|plus|tube|cool|red)|xasian\.org|theporny\.com|madoumedia\.org|1024(?:videos|movies)\.com|bdsmzoo\.com|pornshop\.one|pilipili\.cool|dsdav\.net|x91\.club|x91porn\.com|chinesebdsm\.\w+)\/(?:video\/[^/?]+|videos\?|videos$|$|\?) url script-request-header https://raw.githubusercontent.com/Yu9191/Rewrite/refs/heads/main/porntube/dist/porntube-page-request.js
1310
^https?:\/\/(?:porntube\.(?:cool|fit|site|store)|91porn\.(?:coach|top|band|name|plus|porn|red|sex)|91pornny\.com|91\.wtf|91forum\.com|91dabiaojie\.com|91zpc\.(?:app|pro|org|co|com)|chineseselfie\.(?:com|net|org)|xchina\.(?:day|cloud|plus|tube|cool|red)|xasian\.org|theporny\.com|madoumedia\.org|1024(?:videos|movies)\.com|bdsmzoo\.com|pornshop\.one|pilipili\.cool|dsdav\.net|x91\.club|x91porn\.com|chinesebdsm\.\w+)\/(?:video\/[^/?]+|videos\?|videos$|$|\?) url script-response-body https://raw.githubusercontent.com/Yu9191/Rewrite/refs/heads/main/porntube/dist/porntube-frontend.js
1411

1512
[mitm]

‎porntube/modules/porntube.lpx‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ logLevel = select, "info", "off", "error", "warn", "debug", "all", tag=日志级
99
player = select, "lenna", "SenPlayer", "SenPlayer-dl", "Infuse", "Fileball", "VidHub", "IINA", "Alook", "VLC", "KMPlayer", "NPlayer", "Safari", tag=播放器
1010
scheme = input, "none", tag=自定义scheme
1111
encode = select, "default", "yes", "no", tag=URL编码
12-
jump = select, "yes", "no", tag=播放器跳转
12+
jump = select, "no", "yes", tag=播放器跳转
1313

1414
[Script]
1515
http-request ^https?:\/\/v2\.(?:cdn199\.com|kekecdn\.net|luchu\.org|madou\.ws|papapa\.biz|tianmtv\.com|xiaoshuo\.info|xiaoshuo\.la)\/js script-path=https://raw.githubusercontent.com/Yu9191/Rewrite/refs/heads/main/porntube/dist/porntube-request.js, requires-body=true, timeout=10, tag=porntube 请求
16-
http-response ^https?:\/\/v2\.(?:cdn199\.com|kekecdn\.net|luchu\.org|madou\.ws|papapa\.biz|tianmtv\.com|xiaoshuo\.info|xiaoshuo\.la)\/js script-path=https://raw.githubusercontent.com/Yu9191/Rewrite/refs/heads/main/porntube/dist/porntube.js, requires-body=true, timeout=20, tag=porntube API, argument=[{logLevel},{player},{scheme},{encode},{jump}]
17-
http-response ^https?:\/\/(?:porntube\.(?:cool|fit|site|store)|91porn\.(?:coach|top|band|name|plus|porn|red|sex)|91pornny\.com|91\.wtf|91forum\.com|91dabiaojie\.com|91zpc\.(?:app|pro|org|co|com)|chineseselfie\.(?:com|net|org)|xchina\.(?:day|cloud|plus|tube|cool|red)|xasian\.org|theporny\.com|madoumedia\.org|1024(?:videos|movies)\.com|bdsmzoo\.com|pornshop\.one|pilipili\.cool|dsdav\.net|x91\.club|x91porn\.com|chinesebdsm\.\w+)\/(?:video\/[^/?]+|videos\?|videos$|$|\?) script-path=https://raw.githubusercontent.com/Yu9191/Rewrite/refs/heads/main/porntube/dist/porntube-frontend.js, requires-body=true, timeout=20, tag=porntube 前端
16+
http-response ^https?:\/\/v2\.(?:cdn199\.com|kekecdn\.net|luchu\.org|madou\.ws|papapa\.biz|tianmtv\.com|xiaoshuo\.info|xiaoshuo\.la)\/js script-path=https://raw.githubusercontent.com/Yu9191/Rewrite/refs/heads/main/porntube/dist/porntube.js, requires-body=true, timeout=20, tag=porntube API, argument=logLevel={logLevel}&player={player}&scheme={scheme}&encode={encode}&jump={jump}
17+
http-request ^https?:\/\/(?:porntube\.(?:cool|fit|site|store)|91porn\.(?:coach|top|band|name|plus|porn|red|sex)|91pornny\.com|91\.wtf|91forum\.com|91dabiaojie\.com|91zpc\.(?:app|pro|org|co|com)|chineseselfie\.(?:com|net|org)|xchina\.(?:day|cloud|plus|tube|cool|red)|xasian\.org|theporny\.com|madoumedia\.org|1024(?:videos|movies)\.com|bdsmzoo\.com|pornshop\.one|pilipili\.cool|dsdav\.net|x91\.club|x91porn\.com|chinesebdsm\.\w+)\/(?:video\/[^/?]+|videos\?|videos$|$|\?) script-path=https://raw.githubusercontent.com/Yu9191/Rewrite/refs/heads/main/porntube/dist/porntube-page-request.js, timeout=5, tag=porntube 页面请求
18+
http-response ^https?:\/\/(?:porntube\.(?:cool|fit|site|store)|91porn\.(?:coach|top|band|name|plus|porn|red|sex)|91pornny\.com|91\.wtf|91forum\.com|91dabiaojie\.com|91zpc\.(?:app|pro|org|co|com)|chineseselfie\.(?:com|net|org)|xchina\.(?:day|cloud|plus|tube|cool|red)|xasian\.org|theporny\.com|madoumedia\.org|1024(?:videos|movies)\.com|bdsmzoo\.com|pornshop\.one|pilipili\.cool|dsdav\.net|x91\.club|x91porn\.com|chinesebdsm\.\w+)\/(?:video\/[^/?]+|videos\?|videos$|$|\?) script-path=https://raw.githubusercontent.com/Yu9191/Rewrite/refs/heads/main/porntube/dist/porntube-frontend.js, argument=scheme={scheme}, requires-body=true, timeout=20, tag=porntube 前端
1819

1920
[MITM]
2021
hostname = v2.cdn199.com, v2.kekecdn.net, v2.luchu.org, v2.madou.ws, v2.papapa.biz, v2.tianmtv.com, v2.xiaoshuo.info, v2.xiaoshuo.la, porntube.cool, porntube.fit, porntube.site, porntube.store, 91porn.coach, 91porn.top, 91porn.band, 91porn.name, 91porn.plus, 91porn.porn, 91porn.red, 91porn.sex, 91pornny.com, 91.wtf, 91forum.com, 91dabiaojie.com, 91zpc.app, 91zpc.pro, 91zpc.org, 91zpc.co, 91zpcs.com, chineseselfie.com, chineseselfie.net, chineseselfie.org, xchina.day, xchina.cloud, xchina.plus, xchina.tube, xchina.cool, xchina.red, xasian.org, theporny.com, madoumedia.org, 1024videos.com, 1024movies.com, bdsmzoo.com, pornshop.one, pilipili.cool, dsdav.net, x91.club, x91porn.com, *.chinesebdsm.com

‎porntube/modules/porntube.sgmodule‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44
#!author=Yu9191 Rewrite
55
#!homepage=https://github.com/Yu9191/Rewrite
66
#!category=18+
7-
#!arguments=日志级别:info,播放器:lenna,自定义scheme:none,URL编码:default,播放器跳转:yes
8-
#!arguments-desc=日志级别: off / error / warn / info(默认) / debug / all\n播放器: lenna / SenPlayer / SenPlayer-dl / Infuse / Fileball / VidHub / IINA / Alook / VLC / KMPlayer / NPlayer / Safari\n自定义scheme: 填写后覆盖播放器,例如 myplayer://play?url= ;留默认 none 表示不启用\nURL编码: yes / no / default(默认,走播放器默认行为)\n播放器跳转: yes(默认) / no
7+
#!arguments=日志级别:info,播放器:lenna,自定义scheme:none,URL编码:default,播放器跳转:no
8+
#!arguments-desc=日志级别: off / error / warn / info(默认) / debug / all\n播放器: lenna / SenPlayer / SenPlayer-dl / Infuse / Fileball / VidHub / IINA / Alook / VLC / KMPlayer / NPlayer / Safari\n自定义scheme: 填写后覆盖播放器,例如 myplayer://play?url= ;留默认 none 表示不启用\nURL编码: yes / no / default(默认,走播放器默认行为)\n播放器跳转: no(默认) / yes
99

1010
[Script]
1111
porntube 请求 = type=http-request, pattern=^https?:\/\/v2\.(?:cdn199\.com|kekecdn\.net|luchu\.org|madou\.ws|papapa\.biz|tianmtv\.com|xiaoshuo\.info|xiaoshuo\.la)\/js, requires-body=1, max-size=-1, timeout=10, script-path=https://raw.githubusercontent.com/Yu9191/Rewrite/refs/heads/main/porntube/dist/porntube-request.js
1212
porntube API = type=http-response, pattern=^https?:\/\/v2\.(?:cdn199\.com|kekecdn\.net|luchu\.org|madou\.ws|papapa\.biz|tianmtv\.com|xiaoshuo\.info|xiaoshuo\.la)\/js, requires-body=1, max-size=-1, timeout=20, script-path=https://raw.githubusercontent.com/Yu9191/Rewrite/refs/heads/main/porntube/dist/porntube.js, argument=logLevel={{{日志级别}}}&player={{{播放器}}}&scheme={{{自定义scheme}}}&encode={{{URL编码}}}&jump={{{播放器跳转}}}
13-
porntube 前端 = type=http-response, pattern=^https?:\/\/(?:porntube\.(?:cool|fit|site|store)|91porn\.(?:coach|top|band|name|plus|porn|red|sex)|91pornny\.com|91\.wtf|91forum\.com|91dabiaojie\.com|91zpc\.(?:app|pro|org|co|com)|chineseselfie\.(?:com|net|org)|xchina\.(?:day|cloud|plus|tube|cool|red)|xasian\.org|theporny\.com|madoumedia\.org|1024(?:videos|movies)\.com|bdsmzoo\.com|pornshop\.one|pilipili\.cool|dsdav\.net|x91\.club|x91porn\.com|chinesebdsm\.\w+)\/(?:video\/[^/?]+|videos\?|videos$|$|\?), requires-body=1, max-size=-1, timeout=20, script-path=https://raw.githubusercontent.com/Yu9191/Rewrite/refs/heads/main/porntube/dist/porntube-frontend.js
13+
porntube 页面请求 = type=http-request, pattern=^https?:\/\/(?:porntube\.(?:cool|fit|site|store)|91porn\.(?:coach|top|band|name|plus|porn|red|sex)|91pornny\.com|91\.wtf|91forum\.com|91dabiaojie\.com|91zpc\.(?:app|pro|org|co|com)|chineseselfie\.(?:com|net|org)|xchina\.(?:day|cloud|plus|tube|cool|red)|xasian\.org|theporny\.com|madoumedia\.org|1024(?:videos|movies)\.com|bdsmzoo\.com|pornshop\.one|pilipili\.cool|dsdav\.net|x91\.club|x91porn\.com|chinesebdsm\.\w+)\/(?:video\/[^/?]+|videos\?|videos$|$|\?), timeout=5, script-path=https://raw.githubusercontent.com/Yu9191/Rewrite/refs/heads/main/porntube/dist/porntube-page-request.js
14+
porntube 前端 = type=http-response, pattern=^https?:\/\/(?:porntube\.(?:cool|fit|site|store)|91porn\.(?:coach|top|band|name|plus|porn|red|sex)|91pornny\.com|91\.wtf|91forum\.com|91dabiaojie\.com|91zpc\.(?:app|pro|org|co|com)|chineseselfie\.(?:com|net|org)|xchina\.(?:day|cloud|plus|tube|cool|red)|xasian\.org|theporny\.com|madoumedia\.org|1024(?:videos|movies)\.com|bdsmzoo\.com|pornshop\.one|pilipili\.cool|dsdav\.net|x91\.club|x91porn\.com|chinesebdsm\.\w+)\/(?:video\/[^/?]+|videos\?|videos$|$|\?), requires-body=1, max-size=-1, timeout=20, script-path=https://raw.githubusercontent.com/Yu9191/Rewrite/refs/heads/main/porntube/dist/porntube-frontend.js, argument=scheme={{{自定义scheme}}}
1415

1516
[MITM]
1617
hostname = %APPEND% v2.cdn199.com, v2.kekecdn.net, v2.luchu.org, v2.madou.ws, v2.papapa.biz, v2.tianmtv.com, v2.xiaoshuo.info, v2.xiaoshuo.la, porntube.cool, porntube.fit, porntube.site, porntube.store, 91porn.coach, 91porn.top, 91porn.band, 91porn.name, 91porn.plus, 91porn.porn, 91porn.red, 91porn.sex, 91pornny.com, 91.wtf, 91forum.com, 91dabiaojie.com, 91zpc.app, 91zpc.pro, 91zpc.org, 91zpc.co, 91zpcs.com, chineseselfie.com, chineseselfie.net, chineseselfie.org, xchina.day, xchina.cloud, xchina.plus, xchina.tube, xchina.cool, xchina.red, xasian.org, theporny.com, madoumedia.org, 1024videos.com, 1024movies.com, bdsmzoo.com, pornshop.one, pilipili.cool, dsdav.net, x91.club, x91porn.com, *.chinesebdsm.com

‎porntube/modules/porntube.shadowrocket.sgmodule‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
[Script]
99
http-request ^https?:\/\/v2\.(?:cdn199\.com|kekecdn\.net|luchu\.org|madou\.ws|papapa\.biz|tianmtv\.com|xiaoshuo\.info|xiaoshuo\.la)\/js script-path=https://raw.githubusercontent.com/Yu9191/Rewrite/refs/heads/main/porntube/dist/porntube-request.js, requires-body=true, max-size=-1, timeout=10, tag=porntube 请求
1010
http-response ^https?:\/\/v2\.(?:cdn199\.com|kekecdn\.net|luchu\.org|madou\.ws|papapa\.biz|tianmtv\.com|xiaoshuo\.info|xiaoshuo\.la)\/js script-path=https://raw.githubusercontent.com/Yu9191/Rewrite/refs/heads/main/porntube/dist/porntube.js, requires-body=true, max-size=-1, timeout=20, tag=porntube API
11+
http-request ^https?:\/\/(?:porntube\.(?:cool|fit|site|store)|91porn\.(?:coach|top|band|name|plus|porn|red|sex)|91pornny\.com|91\.wtf|91forum\.com|91dabiaojie\.com|91zpc\.(?:app|pro|org|co|com)|chineseselfie\.(?:com|net|org)|xchina\.(?:day|cloud|plus|tube|cool|red)|xasian\.org|theporny\.com|madoumedia\.org|1024(?:videos|movies)\.com|bdsmzoo\.com|pornshop\.one|pilipili\.cool|dsdav\.net|x91\.club|x91porn\.com|chinesebdsm\.\w+)\/(?:video\/[^/?]+|videos\?|videos$|$|\?) script-path=https://raw.githubusercontent.com/Yu9191/Rewrite/refs/heads/main/porntube/dist/porntube-page-request.js, timeout=5, tag=porntube 页面请求
1112
http-response ^https?:\/\/(?:porntube\.(?:cool|fit|site|store)|91porn\.(?:coach|top|band|name|plus|porn|red|sex)|91pornny\.com|91\.wtf|91forum\.com|91dabiaojie\.com|91zpc\.(?:app|pro|org|co|com)|chineseselfie\.(?:com|net|org)|xchina\.(?:day|cloud|plus|tube|cool|red)|xasian\.org|theporny\.com|madoumedia\.org|1024(?:videos|movies)\.com|bdsmzoo\.com|pornshop\.one|pilipili\.cool|dsdav\.net|x91\.club|x91porn\.com|chinesebdsm\.\w+)\/(?:video\/[^/?]+|videos\?|videos$|$|\?) script-path=https://raw.githubusercontent.com/Yu9191/Rewrite/refs/heads/main/porntube/dist/porntube-frontend.js, requires-body=true, max-size=-1, timeout=20, tag=porntube 前端
1213

1314
[MITM]

‎porntube/porntube.snippet‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
[rewrite_local]
88
^https?:\/\/v2\.(?:cdn199\.com|kekecdn\.net|luchu\.org|madou\.ws|papapa\.biz|tianmtv\.com|xiaoshuo\.info|xiaoshuo\.la)\/js url script-request-body https://raw.githubusercontent.com/Yu9191/Rewrite/refs/heads/main/porntube/dist/porntube-request.js
99
^https?:\/\/v2\.(?:cdn199\.com|kekecdn\.net|luchu\.org|madou\.ws|papapa\.biz|tianmtv\.com|xiaoshuo\.info|xiaoshuo\.la)\/js url script-response-body https://raw.githubusercontent.com/Yu9191/Rewrite/refs/heads/main/porntube/dist/porntube.js
10+
^https?:\/\/(?:porntube\.(?:cool|fit|site|store)|91porn\.(?:coach|top|band|name|plus|porn|red|sex)|91pornny\.com|91\.wtf|91forum\.com|91dabiaojie\.com|91zpc\.(?:app|pro|org|co|com)|chineseselfie\.(?:com|net|org)|xchina\.(?:day|cloud|plus|tube|cool|red)|xasian\.org|theporny\.com|madoumedia\.org|1024(?:videos|movies)\.com|bdsmzoo\.com|pornshop\.one|pilipili\.cool|dsdav\.net|x91\.club|x91porn\.com|chinesebdsm\.\w+)\/(?:video\/[^/?]+|videos\?|videos$|$|\?) url script-request-header https://raw.githubusercontent.com/Yu9191/Rewrite/refs/heads/main/porntube/dist/porntube-page-request.js
1011
^https?:\/\/(?:porntube\.(?:cool|fit|site|store)|91porn\.(?:coach|top|band|name|plus|porn|red|sex)|91pornny\.com|91\.wtf|91forum\.com|91dabiaojie\.com|91zpc\.(?:app|pro|org|co|com)|chineseselfie\.(?:com|net|org)|xchina\.(?:day|cloud|plus|tube|cool|red)|xasian\.org|theporny\.com|madoumedia\.org|1024(?:videos|movies)\.com|bdsmzoo\.com|pornshop\.one|pilipili\.cool|dsdav\.net|x91\.club|x91porn\.com|chinesebdsm\.\w+)\/(?:video\/[^/?]+|videos\?|videos$|$|\?) url script-response-body https://raw.githubusercontent.com/Yu9191/Rewrite/refs/heads/main/porntube/dist/porntube-frontend.js
1112

1213
[mitm]

‎porntube/rollup.config.js‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ function buildBanner(name = "Script") {
1717
}
1818

1919
export default [
20+
{
21+
input: "src/page-request.js",
22+
output: {
23+
file: "dist/porntube-page-request.js",
24+
format: "iife",
25+
},
26+
plugins: [terser(), buildBanner("porntube-page-request.js")],
27+
},
2028
{
2129
input: "src/porntube.js",
2230
output: {

0 commit comments

Comments
 (0)