Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #177

Open
wants to merge 60 commits into
base: dev
Choose a base branch
from
Open

Dev #177

Changes from 1 commit
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
12ed009
🐞 fix(修复server下无法注入js|css到页面中的问题):
WhiteSevs Jul 19, 2024
2a9e4bb
fix: 修复server下在via/x浏览器上缺失Api的问题
WhiteSevs Jul 19, 2024
0bb0d50
fix: 🐛 新增函数用于处理GM api兼容问题
WhiteSevs Jul 20, 2024
902600f
fix: 🐛 修复mountGmApiFn未执行的问题
WhiteSevs Jul 20, 2024
16f5cb8
feat: 新增对申请的Api的值进行判空处理
WhiteSevs Jul 20, 2024
7fb5952
feat: 新增配置项server.ssl
WhiteSevs Jul 20, 2024
291d74a
refactor: ssl => entryUrlProtocol @default "origin"
WhiteSevs Jul 21, 2024
d40f393
revert: 删除新增的配置项entryUrlProtocol
WhiteSevs Jul 21, 2024
f4e4444
fix: window.close delay time 500 => 1000
WhiteSevs Jul 21, 2024
2d940a3
fix: window.close delay time 3500
WhiteSevs Jul 21, 2024
c0f8c89
fix: 修改修复GM api的逻辑,即注册到document下,而非window下
WhiteSevs Jul 21, 2024
61a1910
Merge branch 'main' of https://github.com/lisonge/vite-plugin-monkey
WhiteSevs Jul 23, 2024
9b6bdca
fix: compat not defined in pkg/package.json but exist in pkg/subpath …
lisonge Jul 21, 2024
0b0bbbb
chore: update demo
lisonge Jul 21, 2024
81d3786
chore: remove useless code
lisonge Jul 21, 2024
d50360b
chore: v4.0.5
lisonge Jul 21, 2024
a219cd8
fix: can not collect grant when minify (#166)
lisonge Jul 21, 2024
6924154
chore: v4.0.6
lisonge Jul 21, 2024
15f5cf7
Merge branch 'main' of https://github.com/WhiteSevs/vite-plugin-monkey
WhiteSevs Jul 25, 2024
b192c73
fix: 修复cssSideEffects注入问题
WhiteSevs Jul 25, 2024
6f9fe45
feat: 新增配置build.metaLocalFileName
WhiteSevs Jul 25, 2024
dff9c52
chore: remove deprecated vscode extension
festoney8 Sep 3, 2024
56a93e9
chore: volta
lisonge Sep 16, 2024
2441a29
feat: add tampermonkey tag (#181)
lisonge Sep 16, 2024
e996387
refactor: add TypeScript interfaces for various functionalities
lisonge Nov 15, 2024
a45c039
feat: add type
lisonge Nov 26, 2024
c1566c8
refactor: update dependencies, rm unused files
lisonge Dec 3, 2024
dd7dd63
fix: gm type
lisonge Dec 5, 2024
cb52f59
fix: transform_type
lisonge Dec 9, 2024
539f5c5
perf: redirectClient
lisonge Dec 10, 2024
8af8a0d
perf: 优化注入流程
WhiteSevs Dec 10, 2024
7944008
Merge branch 'dev' of https://github.com/lisonge/vite-plugin-monkey i…
WhiteSevs Dec 10, 2024
94ca32d
fix: GmApi is not defined
WhiteSevs Dec 10, 2024
73bc8f1
fix: GmApi => GmContextType
WhiteSevs Dec 10, 2024
bdabd57
feat: add GM new Api
WhiteSevs Dec 10, 2024
22ad500
feat: transform context type
lisonge Dec 11, 2024
933e084
chore: update playground
lisonge Dec 11, 2024
d3b9297
perf: fix vite client
lisonge Dec 12, 2024
87699fd
chore: add redirectClient comment link
lisonge Dec 12, 2024
13d37a5
perf: remove svg inline plugin
lisonge Dec 12, 2024
1a757b6
chore: v5.0.0-beta.1
lisonge Dec 12, 2024
666b180
chore: v5.0.0-beta.2
lisonge Dec 12, 2024
ccc0338
feat: update create monkey
lisonge Dec 12, 2024
e1dbb91
chore: pnpm build:playground
lisonge Dec 12, 2024
f2b8af0
fix: gm_api
lisonge Dec 12, 2024
235af7c
chore: v5.0.0-beta.3
lisonge Dec 12, 2024
7e2d8bc
chore: use react 18
lisonge Dec 13, 2024
d640065
chore: update dependencies
lisonge Dec 13, 2024
96bfc18
Merge branch 'dev' of https://github.com/lisonge/vite-plugin-monkey i…
WhiteSevs Dec 14, 2024
7cf31d4
Merge branch 'dev' of https://github.com/lisonge/vite-plugin-monkey i…
WhiteSevs Dec 15, 2024
e1a130b
🐞 fix: fix mount GM
WhiteSevs Dec 15, 2024
1d9e783
Merge branch 'dev' of https://github.com/lisonge/vite-plugin-monkey i…
WhiteSevs Dec 20, 2024
3b5f565
Merge branch 'dev' of https://github.com/lisonge/vite-plugin-monkey i…
WhiteSevs Dec 21, 2024
f0f7227
Merge branch 'dev' of https://github.com/lisonge/vite-plugin-monkey i…
WhiteSevs Dec 31, 2024
d71ad71
🎈 perf: 调整file协议
WhiteSevs Dec 31, 2024
51eeb3f
🦄 refactor: 重构部分代码
WhiteSevs Dec 31, 2024
e6ec8b0
Merge branch 'dev' of https://github.com/lisonge/vite-plugin-monkey i…
WhiteSevs Jan 11, 2025
4a0c367
Merge branch 'dev' of https://github.com/lisonge/vite-plugin-monkey i…
WhiteSevs Jan 30, 2025
504040f
Merge branch 'dev' of https://github.com/lisonge/vite-plugin-monkey i…
WhiteSevs Feb 11, 2025
34b805f
Merge branch 'dev' of https://github.com/lisonge/vite-plugin-monkey i…
WhiteSevs Feb 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: add redirectClient comment link
lisonge committed Dec 12, 2024
commit 87699fdd15b984599fc7a9674c4a586be597a61b
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@ import type { Plugin } from 'vite';
import type { FinalMonkeyOption } from '../types';
import { gmIdentifiers } from '../gm_api';

// https://github.com/Tampermonkey/tampermonkey/issues/1567
const clientSourceId = 'vite-plugin-monkey/dist/client';
const clientId = '\0vite-plugin-monkey/dist/client';
export const redirectClientPlugin = (_: FinalMonkeyOption): Plugin => {