Skip to content

Commit 6e697c4

Browse files
committed
🔖 Release 0.2.1
1 parent eec19a5 commit 6e697c4

File tree

10 files changed

+623
-1264
lines changed

10 files changed

+623
-1264
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
### 2. 安装脚本
1313

14-
| ghproxy | GitHub 源 | Greasy Fork 源 |
15-
| ---------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
16-
| [安装](https://mirror.ghproxy.com/https://github.com/ProgramRipper/BLiveWeb/releases/latest/download/bliveweb.user.js) | [安装](https://github.com/ProgramRipper/BLiveWeb/releases/latest/download/bliveweb.user.js) | [安装](https://update.greasyfork.org/scripts/476537/B%20%E7%AB%99%E7%BD%91%E9%A1%B5%E7%AB%AF%E7%9B%B4%E6%92%AD.user.js) |
14+
| GitHub Proxy | GitHub 源 | Greasy Fork 源 |
15+
| -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
16+
| [安装](https://ghfast.top/https://github.com/ProgramRipper/BLiveWeb/refs/heads/master/lib/index.user.js) | [安装](https://github.com/ProgramRipper/BLiveWeb/refs/heads/master/lib/index.user.js) | [安装](https://update.greasyfork.org/scripts/476537/B%20%E7%AB%99%E7%BD%91%E9%A1%B5%E7%AB%AF%E7%9B%B4%E6%92%AD.user.js) |
1717

1818
### 3. 开始直播
1919

lib/index.user.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/* This file is @generated by `ts-node scripts/build.ts`, DO NOT EDIT IT MANUALLY! */
2+
/* prettier-ignore */
3+
/* eslint-disable */
4+
// ==UserScript==
5+
// @name B 站网页端直播
6+
// @namespace ProgramRipper
7+
// @version 0.2.1
8+
// @author ProgramRipper
9+
// @license MIT
10+
// @description 在 B 站网页端开播
11+
// @homepage https://github.com/ProgramRipper/BLiveWeb
12+
// @icon https://www.bilibili.com/favicon.ico
13+
// @updateURL https://hub.hanbi.live/ProgramRipper/BLiveWeb/refs/heads/master/lib/index.user.js
14+
// @downloadURL https://hub.hanbi.live/ProgramRipper/BLiveWeb/refs/heads/master/lib/index.user.js
15+
// @supportURL https://github.com/ProgramRipper/BLiveWeb/issues
16+
// @match *://link.bilibili.com/*
17+
// @connect api.live.bilibili.com
18+
// @connect *
19+
// ==/UserScript==
20+
(()=>{let r=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(i,e,p=!0,a=null,l=null){let{host:n,pathname:o}=new URL(e.startsWith("//")?"https:"+e:e);switch(i){case"GET":if(n==="api.live.bilibili.com"&&o==="/xlive/app-blink/v1/live/GetWebLivePermission"){let s=Object.getOwnPropertyDescriptor(XMLHttpRequest.prototype,"responseText")?.get;Object.defineProperty(this,"responseText",{get(){let t=JSON.parse(s?.call(this));return t.data.allow_live=!0,JSON.stringify(t)}})}break;case"POST":n==="api.live.bilibili.com"&&o==="/room/v1/Room/startLive"&&(this.send=s=>{let t=new URLSearchParams(s);t.set("platform","ios"),XMLHttpRequest.prototype.send.call(this,t.toString())});break}r.call(this,i,e,p,a,l)}})();

package.json

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,33 @@
11
{
2-
"name": "bliveweb",
2+
"name": "@ProgramRipper/B 站网页端直播",
33
"private": true,
4-
"version": "0.2.0",
4+
"version": "0.2.1",
55
"description": "在 B 站网页端开播",
66
"keywords": [
77
"bilibili",
88
"tampermonkey",
99
"userscript"
1010
],
1111
"homepage": "https://github.com/ProgramRipper/BLiveWeb",
12-
"bugs": {
13-
"url": "https://github.com/ProgramRipper/BLiveWeb/issues",
14-
"email": "[email protected]"
15-
},
12+
"bugs": "https://github.com/ProgramRipper/BLiveWeb/issues",
1613
"license": "MIT",
17-
"author": "ProgramRipper <[email protected]> (https://github.com/ProgramRipper)",
14+
"author": {
15+
"name": "ProgramRipper",
16+
"email": "[email protected]",
17+
"url": "https://github.com/ProgramRipper"
18+
},
1819
"repository": "github:ProgramRipper/BLiveWeb",
1920
"scripts": {
20-
"build": "webpack --mode=production --node-env=production",
21+
"build": "ts-node scripts/build.ts",
2122
"format": "prettier -w .",
22-
"check": "prettier -c .; tsc --noEmit",
23-
"watch": "webpack --watch"
23+
"check": "prettier -c .; tsc --noEmit"
2424
},
2525
"devDependencies": {
26-
"@types/node": "^20.14.2",
27-
"prettier": "^3.3.2",
28-
"terser-webpack-plugin": "^5.3.10",
29-
"ts-loader": "^9.5.1",
26+
"@types/node": "^22.15.18",
27+
"esbuild": "^0.25.4",
28+
"prettier": "^3.5.3",
3029
"ts-node": "^10.9.2",
31-
"typescript": "^5.4.5",
32-
"webpack": "^5.92.0",
33-
"webpack-cli": "^5.1.4"
34-
}
30+
"typescript": "^5.8.3"
31+
},
32+
"packageManager": "[email protected]"
3533
}

0 commit comments

Comments
 (0)