Skip to content

Commit a0ff084

Browse files
committed
init commit
1 parent d97d1a7 commit a0ff084

83 files changed

Lines changed: 1603 additions & 7869 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.DS_Store

8 KB
Binary file not shown.

.github/workflows/release.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Setup pnpm
19+
uses: pnpm/action-setup@v4
20+
with:
21+
version: 10.15.1
22+
run_install: false
23+
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: '22'
28+
cache: 'pnpm'
29+
30+
- name: Install dependencies
31+
run: pnpm install
32+
33+
- name: Build packages
34+
run: pnpm build
35+
36+
- name: Collect dist files
37+
run: |
38+
mkdir -p release-files
39+
find packages/*/dist -name "*.js" -type f | while read file; do
40+
package_name=$(echo "$file" | cut -d'/' -f2)
41+
filename=$(basename "$file")
42+
cp "$file" "release-files/${package_name}-${filename}"
43+
done
44+
45+
- name: Create Release
46+
uses: softprops/action-gh-release@v2
47+
with:
48+
files: release-files/*
49+
generate_release_notes: true
50+
draft: false
51+
prerelease: false
52+
env:
53+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,12 @@
1-
# 日常需要用到便自行实现的油猴脚本
1+
# My UserScripts
22

3-
[![source-GitHub](https://img.shields.io/badge/source-GitHub-brightgreen.svg)](https://github.com/rxliuli/userjs) [![license-MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/rxliuli/userjs/blob/master/LICENSE)
3+
[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/rxliuli)
44

5-
## 模块列表
6-
7-
- [解除网页限制](./apps/unblock-web-restrictions): 快速解除/恢复网页限制
8-
- [translation-selection](./apps/translation-selection): 将网页上选中的文字为英文,然后复制到剪切版便于粘贴
9-
- [goflac-download](./apps/goflac-download): 简化下载音乐需要重命名的麻烦,基本上和 91flac-download 差不多
10-
- [mdn-auto-chinese](./apps/mdn-auto-chinese): 如果检测到当前页面有中文翻译的话就跳转到中文翻译页面
11-
- [npmjs-copy-name-only](./apps/npmjs-copy-name-only): npm.js 仅复制名字,而不复制 `npm i` 前缀
12-
- [user.css](./apps/usercss): 一些 user.css 样式
13-
- [website](./website): 脚本的配置网站
14-
15-
##
16-
17-
- [liuli-util](https://github.com/rxliuli/liuli-util): 并非特意实现给 UserJS 使用,但里面基本上全是无依赖的小型 JS 的工具库,在脚本中通过 `yarn add @liuli-util/*` 安装使用
5+
- [Reddit Ctrl+Enter Sender](./packages//reddit-ctrl-enter-sender/README.md): A userscript to send Reddit comments with Ctrl+Enter.
6+
- [YouTube Music Background Play](./packages/youtube-music-background-play/README.md): A userscript to enable background play on YouTube Music.
187

198
## FAQ
209

21-
### 为什么没有发布到 GreasyFork 上?
10+
### Why not publish on GreasyFork?
2211

23-
事实上,它们删了吾辈的用户脚本。由于它们要求所有的代码不能压缩,而第三方依赖(例如 react)默认会压缩,只能通过 `@require` 引入,但并非所有 npm 包都支持 iife(浏览器专用)的格式(一般支持 esm/cjs),懒得与其斗智斗勇所以放弃了。
12+
In fact, they removed my userscript. Since they require all code to be unminified, while third-party dependencies (like React) are minified by default and can only be included via `@require`, but not all npm packages support the iife (browser-specific) format (usually they support esm/cjs), I gave up because I didn't want to deal with these complications.

apps/devops-aliyun-markdown-default/package.json

Lines changed: 0 additions & 23 deletions
This file was deleted.

apps/devops-aliyun-markdown-default/src/index.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

apps/devops-aliyun-markdown-default/tsconfig.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

apps/goflac-download/README.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

apps/goflac-download/package.json

Lines changed: 0 additions & 37 deletions
This file was deleted.

apps/goflac-download/src/index.ts

Lines changed: 0 additions & 101 deletions
This file was deleted.

apps/goflac-download/src/loading.ts

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)