Skip to content

Commit c7b8f2c

Browse files
committed
2.4.15
Signed-off-by: Magic <magicoflolis@tuta.io>
1 parent 7b95404 commit c7b8f2c

11 files changed

Lines changed: 1090 additions & 229 deletions

File tree

userscript/.eslintignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/src/header.js
2+
src/header.js
3+
header.js
4+
5+
/tools/userscript.js
6+
tools/userscript.js
7+
userscript.js

userscript/.eslintrc.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
"root": true,
33
"globals": {
44
"GM": "writable",
5-
"jshead": "writable",
6-
"debug": "writable",
7-
"debugToggle": "writable",
8-
"code": "writable",
9-
"browser": "readonly",
10-
"chrome": "readonly",
5+
"err": "readonly",
6+
"boxCSS": "readonly",
7+
"main_css": "readonly",
8+
"custom_width": "readonly",
9+
"jaeFetchUserJSFrame": "readonly",
10+
"sleazyfork_redirect": "readonly",
1111
"webext": "readonly",
1212
"brws": "readonly"
1313
},
@@ -23,14 +23,15 @@
2323
"prettier"
2424
],
2525
"parserOptions": {
26+
"ecmaVersion": "latest",
2627
"sourceType": "module",
2728
"allowImportExportEverywhere": false,
2829
"ecmaFeatures": {
2930
"globalReturn": true,
3031
"arrowFunctions": true,
3132
"modules": true
32-
},
33-
"ecmaVersion": "latest"
33+
}
3434
},
35+
"ignorePatterns": ["/src/header.js","/tools/userscript.js", "/dist/*.js"],
3536
"rules": {}
3637
}

userscript/.swcrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"jsc": {
3+
"parser": {
4+
"syntax": "ecmascript"
5+
},
6+
"target": "es2020"
7+
},
8+
"module": {
9+
"type": "es6"
10+
}
11+
}

userscript/dist/magic-userjs.dev.user.js

Lines changed: 430 additions & 0 deletions
Large diffs are not rendered by default.

userscript/package.json

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,38 @@
11
{
22
"name": "uscript-plus-firefox",
3-
"productName": "Magic Userscript+ : Show Site All UserJS",
4-
"version": "2.4.14",
53
"description": "Show current site all UserJS, the easier way to install UserJs for Tampermonkey.",
4+
"author": "Magic <magicoflolis@tuta.io>",
5+
"version": "3.4.13",
6+
"license": "MIT",
7+
"userJS": {
8+
"name": "Magic Userscript+ : Show Site All UserJS",
9+
"bugs": "https://github.com/magicoflolis/Userscript-Plus/issues/new",
10+
"homepage": "https://github.com/magicoflolis/Userscript-Plus",
11+
"icon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3ggEBCQHM3fXsAAAAVdJREFUOMudkz2qwkAUhc/goBaGJBgUtBCZyj0ILkpwAW7Bws4yO3AHLiCtEFD8KVREkoiFxZzX5A2KGfN4F04zMN+ce+5c4LMUgDmANYBnrnV+plBSi+FwyHq9TgA2LQpvCiEiABwMBtzv95RSfoNEHy8DYBzHrNVqVEr9BWKcqNFoxF6vx3a7zc1mYyC73a4MogBg7vs+z+czO50OW60Wt9stK5UKp9Mpj8cjq9WqDTBHnjAdxzGQZrPJw+HA31oulzbAWgLoA0CWZVBKIY5jzGYzdLtdE9DlcrFNrY98zobqOA6TJKHW2jg4nU5sNBpFDp6mhVe5rsvVasUwDHm9Xqm15u12o+/7Hy0gD8KatOd5vN/v1FozTVN6nkchxFuI6hsAAIMg4OPxMJCXdtTbR7JJCMEgCJhlGUlyPB4XfumozInrupxMJpRSRtZlKoNYl+m/6/wDuWAjtPfsQuwAAAAASUVORK5CYII=",
12+
"url": "https://cdn.jsdelivr.net/gh/magicoflolis/Userscript-Plus@master/userscript/dist/magic-userjs.dev.user.js"
13+
},
14+
"type": "module",
615
"scripts": {
716
"dev:Start": "concurrently \"npm run dev:Userscript\" \"npm run dev:Server\"",
8-
"pub:Userscript": "node -r dotenv/config ./tools/userscript.js dotenv_config_path=./dist/.env",
17+
"pub:Userscript": "node -r dotenv/config ./tools/userscript.js dotenv_config_path=./dist/.env",
918
"dev:Userscript": "node -r dotenv/config ./tools/userscript.js dotenv_config_path=./src/.env",
1019
"dev:Server": "http-server ./dist -s --no-dotfiles -c-1"
1120
},
12-
"type": "module",
1321
"devDependencies": {
22+
"@swc/cli": "^0.1.57",
23+
"@swc/core": "^1.3.3",
1424
"@types/sass": "^1.43.1",
15-
"dotenv": "^16.0.1",
16-
"eslint": "^8.16.0",
25+
"concurrently": "^7.4.0",
26+
"dotenv": "^16.0.2",
27+
"eslint": "^8.23.0",
1728
"eslint-config-prettier": "^8.5.0",
18-
"http-server": "^14.1.0",
19-
"concurrently": "^7.2.1",
29+
"http-server": "^14.1.1",
2030
"node-watch": "^0.7.3"
2131
},
22-
"author": "Magic <magicoflolis@tuta.io>",
23-
"license": "MIT",
24-
"bugs": {
25-
"url": "https://github.com/magicoflolis/Userscript-Plus/issues/new"
32+
"repository": {
33+
"type": "git",
34+
"url": "git+https://github.com/magicoflolis/Userscript-Plus.git"
2635
},
27-
"homepage": "https://github.com/magicoflolis/Userscript-Plus",
28-
"repository": "git+https://github.com/magicoflolis/Userscript-Plus.git",
2936
"keywords": [
3037
"userscript",
3138
"userjs",

userscript/src/header.js

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,19 @@
11
{jshead}
22

33
/**
4-
* Enable built-in "Greasyfork Search with Sleazyfork Results include"
5-
* 启用内置"使用 Sleazyfork 搜索"结果包括"
6-
* 組み込みの「スライジーフォークの結果を含む脂っこく検索」を有効にする
7-
* Включить встроенный "Greasyfork Поиск с Sleazyfork Результаты включают"
8-
* https://greasyfork.org/scripts/23840
9-
*/
10-
const sleazyfork_redirect = false, // 'true' to enable, 'false' to disable
11-
custom_width = '', // Default UserJS width: 90vw | Original UserJS width: 860px
12-
/**
13-
* Injected stylesheet
14-
* https://github.com/magicoflolis/Userscript-Plus/tree/master/src/sass
15-
*/
16-
boxCSS = `{boxCSS}`,
17-
err = (...error) => {
18-
console.error('[%cUserJS%c] %cERROR', 'color: rgb(29, 155, 240);', '', 'color: rgb(249, 24, 128);', ...error);
19-
};
20-
21-
if(typeof unsafeWindow === 'undefined') {
22-
err('[%cUserJS%c] %cERROR', 'color: rgb(29, 155, 240);', '', 'color: rgb(249, 24, 128);', "Unsupported: unsafeWindow");
23-
} else {
24-
unsafeWindow.GmAjax = GM_xmlhttpRequest;
25-
};
4+
* Enable built-in "Greasyfork Search with Sleazyfork Results include"
5+
* 启用内置"使用 Sleazyfork 搜索"结果包括"
6+
* 組み込みの「スライジーフォークの結果を含む脂っこく検索」を有効にする
7+
* Включить встроенный "Greasyfork Поиск с Sleazyfork Результаты включают"
8+
* https://greasyfork.org/scripts/23840
9+
*/
10+
const sleazyfork_redirect = true, // 'true' to enable, 'false' to disable
11+
/**
12+
* Injected stylesheet
13+
* https://github.com/magicoflolis/Userscript-Plus/tree/master/src/sass
14+
*/
15+
main_css = `{main_css}`;
2616

27-
{code}
17+
(() => {
18+
{code}
19+
})();

0 commit comments

Comments
 (0)