Skip to content

Commit

Permalink
🐛 修复user.js?*链接无法触发安装与优化点击脚本名即进入编辑 #142
Browse files Browse the repository at this point in the history
  • Loading branch information
CodFrm committed Feb 6, 2023
1 parent 184cfaf commit 4576795
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scriptcat",
"version": "0.11.1",
"version": "0.11.2",
"description": "脚本猫,一个可以执行用户脚本的浏览器扩展,万物皆可脚本化,让你的浏览器可以做更多的事情!",
"author": "CodFrm",
"license": "GPLv3",
Expand Down
2 changes: 1 addition & 1 deletion src/app/const.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const ExtVersion = "0.11.1";
export const ExtVersion = "0.11.2";

export const ExtServer = "https://ext.scriptcat.org/";

Expand Down
6 changes: 3 additions & 3 deletions src/app/service/script/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ export class ScriptManager extends Manager {
},
{
urls: [
"*://*/*.user.js",
"https://*/*.user.sub.js",
"https://*/*.user.bg.js",
"*://*/*.user.js?*",
"https://*/*.user.sub.js?*",
"https://*/*.user.bg.js?*",
],
types: ["main_frame"],
},
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "ScriptCat",
"version": "0.11.1",
"version": "0.11.2",
"author": "CodFrm",
"description": "脚本猫,一个用户脚本管理器,支持后台脚本、定时脚本、页面脚本,可编写脚本每天帮你自动处理事务.",
"options_ui": {
Expand Down
21 changes: 14 additions & 7 deletions src/pages/options/routes/ScriptList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,16 +220,23 @@ function ScriptList() {
render: (col) => {
return (
<Tooltip content={col} position="tl">
<Text
<Link
to={`/script/editor/${col.id}`}
style={{
display: "block",
overflow: "hidden",
textOverflow: "ellipsis",
whiteSpace: "nowrap",
textDecoration: "none",
}}
>
{col}
</Text>
<Text
style={{
display: "block",
overflow: "hidden",
textOverflow: "ellipsis",
whiteSpace: "nowrap",
}}
>
{col}
</Text>
</Link>
</Tooltip>
);
},
Expand Down

0 comments on commit 4576795

Please sign in to comment.