Script cat脚本管理器

This commit is contained in:
小钊 2025-06-17 10:51:56 +08:00
parent fd41f8558f
commit 9ad45f3b6e
42 changed files with 349 additions and 0 deletions

View File

@ -0,0 +1,5 @@
{
"i18n": {
"message": "i18n"
}
}

View File

@ -0,0 +1,5 @@
{
"i18n": {
"message": "i18n"
}
}

BIN
Scriptcat/assets/logo.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

BIN
Scriptcat/assets/logo/github.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 958 B

1
Scriptcat/manifest.json Executable file
View File

@ -0,0 +1 @@
{"manifest_version":2,"name":"ScriptCat","version":"0.13.1","author":"CodFrm","description":"脚本猫,一个用户脚本管理器,支持后台脚本、定时脚本、页面脚本,可编写脚本每天帮你自动处理事务.","options_ui":{"page":"src/options.html","open_in_tab":true},"default_locale":"zh_CN","icons":{"128":"assets/logo.png"},"browser_action":{"default_popup":"src/popup.html"},"background":{"page":"src/background.html"},"content_scripts":[{"matches":["<all_urls>"],"js":["src/content.js"],"run_at":"document_start","all_frames":true}],"permissions":["tabs","cookies","storage","downloads","webRequest","background","<all_urls>","contextMenus","notifications","clipboardWrite","webRequestBlocking"],"sandbox":{"pages":["src/sandbox.html"]}}

1
Scriptcat/src/673.js Executable file

File diff suppressed because one or more lines are too long

9
Scriptcat/src/background.html Executable file
View File

@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script src="vendor-8cc7e6ad.js"></script><script src="vendor-49d0a293.js"></script><script src="vendor-27545368.js"></script><script src="background.js"></script></head>
<body>
<iframe src="/src/sandbox.html" name="sandbox" sandbox="allow-scripts" style="display: none"></iframe>
</body>
</html>

1
Scriptcat/src/background.js Executable file

File diff suppressed because one or more lines are too long

24
Scriptcat/src/confirm.html Executable file
View File

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Confirm - ScriptCat</title>
<script defer="defer" src="monaco-4d2bb52f.js"></script><script defer="defer" src="monaco-c0aa0059.js"></script><script defer="defer" src="monaco-dff5f55e.js"></script><script defer="defer" src="monaco-2cdf052c.js"></script><script defer="defer" src="monaco-d262a4b1.js"></script><script defer="defer" src="vendor-8cc7e6ad.js"></script><script defer="defer" src="vendor-49d0a293.js"></script><script defer="defer" src="vendor-27545368.js"></script><script defer="defer" src="confirm.js"></script></head>
<body>
<div id="root"></div>
</body>
<style>
html,
body {
margin: 0;
padding: 0;
border: 0;
height: 100%;
}
body {
background-color: var(--color-bg-2);
color: var(--color-text-1);
}
</style>
</html>

1
Scriptcat/src/confirm.js Executable file

File diff suppressed because one or more lines are too long

2
Scriptcat/src/content.js Executable file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */

1
Scriptcat/src/editor.worker.js Executable file

File diff suppressed because one or more lines are too long

Binary file not shown.

24
Scriptcat/src/import.html Executable file
View File

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Import - ScriptCat</title>
<script defer="defer" src="monaco-4d2bb52f.js"></script><script defer="defer" src="monaco-c0aa0059.js"></script><script defer="defer" src="monaco-dff5f55e.js"></script><script defer="defer" src="monaco-2cdf052c.js"></script><script defer="defer" src="monaco-d262a4b1.js"></script><script defer="defer" src="vendor-8cc7e6ad.js"></script><script defer="defer" src="vendor-49d0a293.js"></script><script defer="defer" src="vendor-27545368.js"></script><script defer="defer" src="import.js"></script></head>
<body>
<div id="root"></div>
</body>
<style>
html,
body {
margin: 0;
padding: 0;
border: 0;
height: 100%;
}
body {
background-color: var(--color-bg-2);
color: var(--color-text-1);
}
</style>
</html>

1
Scriptcat/src/import.js Executable file

File diff suppressed because one or more lines are too long

2
Scriptcat/src/inject.js Executable file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,27 @@
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/
/** @preserve
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/
/** @preserve
(c) 2012 by Cédric Mesnil. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

24
Scriptcat/src/install.html Executable file
View File

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Install - ScriptCat</title>
<script defer="defer" src="monaco-4d2bb52f.js"></script><script defer="defer" src="monaco-c0aa0059.js"></script><script defer="defer" src="monaco-dff5f55e.js"></script><script defer="defer" src="monaco-2cdf052c.js"></script><script defer="defer" src="monaco-d262a4b1.js"></script><script defer="defer" src="vendor-8cc7e6ad.js"></script><script defer="defer" src="vendor-49d0a293.js"></script><script defer="defer" src="vendor-27545368.js"></script><script defer="defer" src="install.js"></script></head>
<body>
<div id="root"></div>
</body>
<style>
html,
body {
margin: 0;
padding: 0;
border: 0;
height: 100%;
}
body {
background-color: var(--color-bg-2);
color: var(--color-text-1);
}
</style>
</html>

1
Scriptcat/src/install.js Executable file

File diff suppressed because one or more lines are too long

2
Scriptcat/src/linter.worker.js Executable file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,26 @@
/*
* @version 1.4.0
* @date 2015-10-26
* @stability 3 - Stable
* @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)
* @license MIT License
*/
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
/*! @author Toru Nagashima <https://github.com/mysticatea> */
/**
* @fileoverview Pattern for detecting any letter (even letters outside of ASCII).
* NOTE: This file was generated using this script in JSCS based on the Unicode 7.0.0 standard: https://github.com/jscs-dev/node-jscs/blob/f5ed14427deb7e7aac84f3056a5aab2d9f3e563e/publish/helpers/generate-patterns.js
* Do not edit this file by hand-- please use https://github.com/mathiasbynens/regenerate to regenerate the regular expression exported from this file.
* @author Kevin Partington
* @license MIT License (from JSCS). See below.
*/
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,6 @@
/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.37.1(20a8d5a651d057aaed7875ad1c1f2ecf13c4e773)
* Released under the MIT license
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
*-----------------------------------------------------------------------------*/

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,12 @@
/*! @license DOMPurify 2.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.1/LICENSE */
/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.37.1(20a8d5a651d057aaed7875ad1c1f2ecf13c4e773)
* Released under the MIT license
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
*-----------------------------------------------------------------------------*/
/*!---------------------------------------------------------------------------------------------
* Copyright (C) David Owens II, owensd.io. All rights reserved.
*--------------------------------------------------------------------------------------------*/

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

20
Scriptcat/src/options.html Executable file
View File

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Home - ScriptCat</title>
<script defer="defer" src="monaco-4d2bb52f.js"></script><script defer="defer" src="monaco-c0aa0059.js"></script><script defer="defer" src="monaco-dff5f55e.js"></script><script defer="defer" src="monaco-2cdf052c.js"></script><script defer="defer" src="monaco-d262a4b1.js"></script><script defer="defer" src="vendor-8cc7e6ad.js"></script><script defer="defer" src="vendor-49d0a293.js"></script><script defer="defer" src="vendor-27545368.js"></script><script defer="defer" src="673.js"></script><script defer="defer" src="options.js"></script></head>
<body>
<div id="root"></div>
<iframe src="/src/sandbox.html" name="sandbox" sandbox="allow-scripts" style="display: none"></iframe>
</body>
<style>
body {
height: 100%;
overflow: hidden;
background-color: var(--color-bg-2);
color: var(--color-text-1);
}
</style>
</html>

1
Scriptcat/src/options.js Executable file

File diff suppressed because one or more lines are too long

29
Scriptcat/src/popup.html Executable file
View File

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>ScriptCat</title>
<script defer="defer" src="monaco-4d2bb52f.js"></script><script defer="defer" src="monaco-c0aa0059.js"></script><script defer="defer" src="monaco-dff5f55e.js"></script><script defer="defer" src="monaco-2cdf052c.js"></script><script defer="defer" src="monaco-d262a4b1.js"></script><script defer="defer" src="vendor-8cc7e6ad.js"></script><script defer="defer" src="vendor-49d0a293.js"></script><script defer="defer" src="vendor-27545368.js"></script><script defer="defer" src="673.js"></script><script defer="defer" src="popup.js"></script></head>
<body>
<div id="root"></div>
</body>
<style>
html,
body {
background-color: var(--color-bg-2);
color: var(--color-text-1);
margin: 0;
padding: 0;
border: 0;
width: 320px;
/* height: 500px; */
min-height: 150px;
max-height: 500px;
/* overflow-y: auto; */
/* overflow: hidden; */
}
</style>
</html>

1
Scriptcat/src/popup.js Executable file

File diff suppressed because one or more lines are too long

19
Scriptcat/src/sandbox.html Executable file
View File

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<script>
// 某些版本浏览器会因为sandbox中引用了dexie执行此方法导致报错,这里mock一个假的
window.BroadcastChannel = function () {
return {
postMessage: function () {},
close: function () {},
};
};
</script>
<title>Document</title>
<script defer="defer" src="vendor-8cc7e6ad.js"></script><script defer="defer" src="vendor-49d0a293.js"></script><script defer="defer" src="vendor-27545368.js"></script><script defer="defer" src="sandbox.js"></script></head>
<body></body>
</html>

1
Scriptcat/src/sandbox.js Executable file

File diff suppressed because one or more lines are too long

Binary file not shown.

BIN
Scriptcat/src/ts.worker.js.gz Executable file

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,9 @@
/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,81 @@
/*!
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/
/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* React Router DOM v6.3.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/
/**
* React Router v6.3.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/
/** @preserve
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/
/** @preserve
(c) 2012 by Cédric Mesnil. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

File diff suppressed because one or more lines are too long