Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
15 lines (14 loc) · 631 Bytes

File metadata and controls

15 lines (14 loc) · 631 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// ==UserScript==
// @name Inject into
// @namespace https://docs.scriptcat.org/
// @version 0.1.0
// @description 将脚本注入到content环境,以绕过CSP检测,请注意此环境无法访问页面的window,哪怕使用unsafeWindow,只与页面共享document
// @author You
// @match https://benjamin-philipp.com/test-trusted-types.php
// @icon https://www.google.com/s2/favicons?sz=64&domain=benjamin-philipp.com
// @inject-into content
// ==/UserScript==
// 插入元素
const div = document.createElement("div");
div.innerHTML = "hello scriptcat";
document.body.append(div);
Morty Proxy This is a proxified and sanitized view of the page, visit original site.