Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1 #529

Open
wants to merge 36 commits into
base: main
Choose a base branch
from
Open

1 #529

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
4958661
Obfuscate _worker.js
github-actions[bot] Dec 13, 2024
1ead080
Obfuscate _worker.js
github-actions[bot] Dec 13, 2024
f0a3889
Merge branch 'cmliu-main'
Mora-na Dec 14, 2024
9fe6228
Obfuscate _worker.js
github-actions[bot] Dec 14, 2024
bcff6b1
Obfuscate _worker.js
github-actions[bot] Dec 17, 2024
c348370
Obfuscate _worker.js
github-actions[bot] Dec 17, 2024
9872b0c
Obfuscate _worker.js
github-actions[bot] Dec 17, 2024
45e6d2b
Obfuscate _worker.js
github-actions[bot] Dec 17, 2024
8a43be1
Merge branch 'main' of https://github.com/cmliu/edgetunnel
actions-user Dec 21, 2024
e399ac4
Obfuscate _worker.js
github-actions[bot] Dec 22, 2024
d66ef31
Obfuscate _worker.js
github-actions[bot] Dec 22, 2024
338c7c3
Delete _worker.js
Mora-na Dec 22, 2024
cd1d37f
Obfuscate _worker.js
github-actions[bot] Dec 22, 2024
2c145d9
Delete _worker.js
Mora-na Dec 22, 2024
e52b52c
Merge remote-tracking branch 'cmliu/main'
Dec 26, 2024
0dc4707
Obfuscate _worker.js
github-actions[bot] Dec 26, 2024
5d2b796
Obfuscate _worker.js
github-actions[bot] Dec 26, 2024
e1ed54c
Obfuscate _worker.js
github-actions[bot] Dec 26, 2024
dd0e3c9
Obfuscate _worker.js
github-actions[bot] Dec 30, 2024
744d66b
Obfuscate _worker.js
github-actions[bot] Dec 30, 2024
596ad93
Obfuscate _worker.js
github-actions[bot] Dec 30, 2024
d79824e
Merge remote-tracking branch 'cmliu/main'
Jan 6, 2025
8edba02
Obfuscate _worker.js
github-actions[bot] Jan 6, 2025
29190de
Obfuscate _worker.js
github-actions[bot] Jan 6, 2025
aa2cdae
Obfuscate _worker.js
github-actions[bot] Jan 6, 2025
90acbf4
Merge remote-tracking branch 'cmliu/main'
Jan 7, 2025
d60478f
Update obfuscator.yml
Mora-na Jan 8, 2025
b685f69
Obfuscate _worker.js three times
github-actions[bot] Jan 8, 2025
1488612
1
Jan 8, 2025
072b988
Obfuscate _worker.js three times
github-actions[bot] Jan 8, 2025
345cdc2
Update 明文源码.js
Mora-na Jan 8, 2025
074db2a
Obfuscate _worker.js three times
github-actions[bot] Jan 8, 2025
f83273f
Obfuscate _worker.js three times
github-actions[bot] Jan 10, 2025
2efb224
Obfuscate _worker.js three times
github-actions[bot] Jan 10, 2025
5e6d76b
Update 明文源码.js
Mora-na Jan 10, 2025
d2bfb93
Obfuscate _worker.js three times
github-actions[bot] Jan 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 18 additions & 19 deletions .github/workflows/obfuscator.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Obfuscate and Commit

on:
#push:
# paths:
# - '明文源码.js'
workflow_dispatch:

jobs:
Expand All @@ -25,28 +22,30 @@ jobs:
- name: Install dependencies
run: npm install -g javascript-obfuscator

- name: Obfuscate code
- name: Obfuscate code three times
run: |
javascript-obfuscator 明文源码.js --output _worker.js \
--compact true \
--control-flow-flattening true \
--control-flow-flattening-threshold 1 \
--dead-code-injection true \
--dead-code-injection-threshold 1 \
--identifier-names-generator hexadecimal \
--rename-globals true \
--string-array true \
--string-array-encoding 'rc4' \
--string-array-threshold 1 \
--transform-object-keys true \
--unicode-escape-sequence true
for i in 1 2 3; do
javascript-obfuscator 明文源码.js --output "_worker${i}.js" \
--compact true \
--control-flow-flattening true \
--control-flow-flattening-threshold 1 \
--dead-code-injection true \
--dead-code-injection-threshold 1 \
--identifier-names-generator hexadecimal \
--rename-globals true \
--string-array true \
--string-array-encoding 'rc4' \
--string-array-threshold 1 \
--transform-object-keys true \
--unicode-escape-sequence true;
done

- name: Commit changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add _worker.js
git commit -m "Obfuscate _worker.js" || echo "No changes to commit"
git add _worker1.js _worker2.js _worker3.js
git commit -m "Obfuscate _worker.js three times" || echo "No changes to commit"

- name: Push changes
uses: ad-m/github-push-action@master
Expand Down
1 change: 1 addition & 0 deletions _worker1.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions _worker2.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions _worker3.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 明文源码.js
Original file line number Diff line number Diff line change
Expand Up @@ -2190,4 +2190,4 @@ async function KV(request, env, txt = 'ADD.txt') {
headers: { "Content-Type": "text/plain;charset=utf-8" }
});
}
}
}