Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
69 changes: 65 additions & 4 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@ name: Node.js CI

on:
push:
branches: [ 'main' , 'staging' , 'develop' ]
pull_request:
branches: [ 'main' , 'staging' , 'develop' ]

env:
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

jobs:
build_and_test:
name: Build and Test
runs-on: ubuntu-latest

on:
push:
branches: [ 'main' , 'staging' , 'develop' ]
branches: [ 'main' , 'staging' , 'develop' ]
branches: [ "master" ]
pull_request:
branches: [ "master" ]
Expand All @@ -16,16 +32,61 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [12.x, 14.x, 16.x, 18.x]
matrix:
node-version: [14.x]
needs: e2e

- name: Cache node modules
npm@latest
with:
path: ~/.npm
key: ${{ runner.os }}-build-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-node-
push: ${{ github.sha }}

- name: Cache node modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-build-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-node-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

- name: Cache node modules
npm@latest
with:
path: ~/.npm
key: ${{ runner.os }}-build-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-node-
push: ${{ github.sha }

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
npm@latest
token: ${{secrets.ACTIONS_TOKEN}}
- name: Deploy
run: npm run deploy
with:
always-auth: false
check-latest: false
with:
always-auth: false
check-latest: false
npm@latest
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test
- run: npm run assert
- name: End-to-End Testing
run: npm run e2e
- name: Test
run: npm run assert
- name: Deploy
run: npm run deploy
10 changes: 9 additions & 1 deletion 3dm-Enhanced.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@
// @author X.I.U
// @description 自动回复、自动无缝翻页、清理置顶帖子、自动滚动至隐藏内容
// @match *://bbs.3dmgame.com/*
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAC0klEQVR4nJ1TS0hUYRT+/nuvd2Z0nMbRrpPpTJozoZliQmEFFkT0QlwIRWlUi4jIaFGLqE0ELlsEElGrGCKimhaVVmhW9CBSy5ohk/I1pvO66R3nOt7X30IxoyTog8OBc/i+83EOB1gEoRP8Yq3fQP5WvHxqW7kkKfkmXgx+D3PCmjLLuPYmNXyotevfAud9XhQEHZtLKpe3uAozS+12MyRJRTSc7O7tCp9uOPe0Y1GBGAUeXdiyc8vuIr8gmHgQgFACSgwQg0L8oWtP7w3s2Z/vvKse9v0pcLup3FpWV97v8S5xElBMz2hgGIKRgQRcRZmYljVEo4r45E5gVVmtMNH3UC3ifvOfZ693OC3OB50jUFRAkjTIsoqjB7xo7YhgaERChpU4isuXHUsNs+Km7Y5K8rl1L2/PHld8gSFUa6V+r6TXhWMzMNW4EArFQCMRGNMywLFgLOnIXZoD0/PIuHXfSnvUwHUuqTNdJJFvW5+WfSs3z7TVnJiB25WJyXQNjpwl0LJXQVM4ECLDYorDXWJDPM/qzPJmYaxbjHBQlFfFlc4jqZRyyr3aDgYABYXJXIFl6esAws7vm1IFRvIteOktDB0IDYg9zMfP4ZbhwamUp2SWDBBQvhhsxgYQwoEBAQOAAQVD0sBaN0JPc6O/XwoyRk4bE+tLGmJUluSkDk2nSKVUwLIGhC48EQFAQOYyNa99FUiMVQ1Vt8kkPhHnfCd3OYXCjKYCj+0gz0Oo2nEGhDHNEX7BAKAbFIFnzxsrdzb5AIDJsmWh8eK9cUvDjrOv28dqCEsGDarOTgLmwwCgaho+vHx5M3i1+ca8N0opBwDJxAzux9/hffMlW3WF7cqKQk+9RXCBsCx0g079+BpgRjv9Zvtqwb31eHtooQADALquYzQmom/yGnofqzb3txe1kw6PKEOYoBmsbKaKmVeT6SNJ9kvPp68xv98v//FZ/4OfGzYzfKjarqcAAAAASUVORK5CYII=
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_notification
// @license GPL-3.0
// @run-at document-end
// @namespace https://greasyfork.org/scripts/412890
// @supportURL https://github.com/XIU2/UserScript
// @homepageURL https://github.com/XIU2/UserScript
// ==/UserScript==
// @grant GM_xmlhttpRequest
// @grant GM_registerMenuCommand
// @grant GM_unregisterMenuCommand
Expand Down
2 changes: 1 addition & 1 deletion Hostloc-Enhanced.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// @grant GM_setValue
// @grant GM_notification
// @grant unsafeWindow
// @license GPL-3.0 License
// @license GPL-3.0
// @run-at document-end
// @namespace https://greasyfork.org/scripts/414005
// @supportURL https://github.com/XIU2/UserScript
Expand Down
26 changes: 25 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,24 @@ software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to

This work is licensed under the GNU General Public License v3.0.
You should have received a copy of the license along with this
program. If not, see <https://www.gnu.org/licenses/>.

Preamble

The GNU General Public License is a free, copyleft license for
software and other kinds of works.

this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.

The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
Expand Down Expand Up @@ -421,9 +439,13 @@ prior to 60 days after the cessation.

Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.

Termination of your rights under this section does not terminate the
Expand Down Expand Up @@ -549,7 +571,9 @@ to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.

13. Use with the GNU Affero General Public License.
This work is licensed under the GNU General Public License v3.0.
You should have received a copy of the license along with this
program. If not, see <https://www.gnu.org/licenses/>.

Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
Expand Down
6 changes: 5 additions & 1 deletion Ping.Sx-Enhanced.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@
// @match https://ping.sx/check-port*
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAD7klEQVR4nO3WWYxfcxQH8M9//LWzdJuWaVMaI6WKKtKOfacVGuHFgy3E8iARDyKWBBEJ8SC2Jy9EeKCSqpoiBJF22k6JbdBqqqilqe4z05ol0xkP5/zz/6dPY3iQuN/kl3vv755z7lm+5/wuBQoUKFCgQIECBQoU+L+iNAb5OpRzHY5xGI8D2PMPfKlDK+qxNe2NyqHa+4k4EkdgWq6paM41GZNSrilXQ16/wE3YN8YAjsKKtH0NNo5GqVxzP6Ia9QHsQmM63IAJuSZmIBPS8UZMwfcYGKPzMA/z8Sl+G61SbQDzcbkoXxmnp7GVeX8+hrEM36bOqamzMeWm4rq0tRefYD36MRsXCJqMYAPeR3faOltQshO9KXsW9uMtQdMLU7+E7/BRbTBPpeEe/Jn33ViKP/J5BOsEzeCZ3HtEcPcVDGIH+kRPLEnZJ1J2qOb6XCarPoM5iGtxI7annTszsMcO0R9M3xC0WJ0vlmYWO/N5G+7Go5nJ3ThF0GetoM0loko9mdk2XIr7RR9VMnxr7j+QtjahBcfjd+zES5m4Llym2qdn1ujfJ2g+WJcvW3EifsFDeE2VJi/jedFg/Wl8D47DXEG5DZmR/YIqD4vp9HQGPCODPg1Xir4ZTCf6cn+6oODN6fQ9+DCTOF3QsqLfVPM9cEsKLhMlnSSoMoBFKXNDyqwQI+/2fH4dh+Xe9fhaUKE3ZZrxdn5wdcr/kLovpu1n87lX9M4w7sh3zVie+h2pvznl36vLaM9J4bWCY7NxAn4WzQLn1sgM47x8XpPGFuf9ItEbE3Bx6l2Bz3F1BtVVo9sk6HEQD+KF9OmqTGab6KMvU/82fJX6H5cFBxeKxl2fL9oy8g9EMzXjDEGhdYLXCzNjnWJCvSro0iHoNSLOhv5MSivuzeQsSdnPBP/niqq8gTm4S/TMSZn5IRyT+q0Z3G6sqRMTZSfaVQ+PyWm8PbM9TZwL7VmRlgysXZSzC4+nzOJ8/6RoyHWCIt1Zne25144tgt+bxKjcjW/wJn7MRHSKiu5L/R2pvxIbS2KEjUvHh7Js48Xo6s3KlEXjDefqFw03oNpIpdSbkjK7BC1KqoddT8rX57s+1V+RQdWDsCG/Wdkr5/cGD9UviTlbOUxmZ4bGZRa3pbMV1Gd1urAgHdibH+zI/Rli/M0SFW0SvyZb8I6g1r+GsuBfC37CTNFYU9OZNtHg9aIfmvCrKOVMUeZ5YhwuF9meg2MzkJPFaF4lqNdolD9po0UJF4msNIlG6UiHN4vZXemBVeK3oXK4VUZnhQaz8K74KWsRFDo6ZRekva25/nOoE9T6u7/nBQoUKFCgQIECBQoUKDBm/AXKhRvkgr+Z+wAAAABJRU5ErkJggg==
// @grant GM_setClipboard
// @grant GM_notification
// @grant window.onurlchange
// @license GPL-3.0 License
// @license GPL-3.0
// @run-at document-end
// @namespace https://github.com/XIU2/UserScript
// @supportURL https://github.com/XIU2/UserScript
// ==/UserScript==
// @namespace https://github.com/XIU2/UserScript
// @supportURL https://github.com/XIU2/UserScript
// ==/UserScript==

(function() {
'use strict';
Expand Down
2 changes: 1 addition & 1 deletion Zhiyoo-Enhanced.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_notification
// @license GPL-3.0 License
// @license GPL-3.0
// @run-at document-end
// @namespace https://greasyfork.org/scripts/412362
// @supportURL https://github.com/XIU2/UserScript
Expand Down