Skip to content

Instantly share code, notes, and snippets.

@dinghao2020
Forked from janlay/README.md
Created February 25, 2022 02:10
Show Gist options
  • Save dinghao2020/6e2c349c9970be1cffcdfb670b194b58 to your computer and use it in GitHub Desktop.
Save dinghao2020/6e2c349c9970be1cffcdfb670b194b58 to your computer and use it in GitHub Desktop.
魂签 (Soulsign) 脚本

About

魂签,一款用于自动签到的Chrome插件

这里存放由我创建或改进的魂签 (Soulsign) 脚本

Usage

  1. 从这里复制你想要的脚本 Raw URL
  2. 打开魂签「任务管理」
  3. 点击「添加脚本」按钮
  4. 粘贴 URL 并点击「保存」按钮

See

// ==UserScript==
// @name Audiences
// @namespace https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a
// @version 2.0
// @author janlay
// @loginURL https://audiences.me/
// @updateURL https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a/raw/audiences.js
// @expire 14400000
// @domain audiences.me
// ==/UserScript==
const endpoint = 'https://audiences.me/';
exports.run = async function(param) {
const { data } = await axios.get(`${endpoint}attendance.php`);
if (//.test(data)) return '签到成功';
if (//.test(data)) return '今日已签';
throw '访问失败';
};
exports.check = async function(param) {
const { status } = await axios.get(`${endpoint}index.php`);
return status == 200 ? 'OK' : 'FAILED'
};
// ==UserScript==
// @name BTSCHOOL
// @namespace https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a
// @version 2.0
// @author janlay
// @loginURL https://pt.btschool.club/
// @updateURL https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a/raw/btschool.js
// @expire 14400000
// @domain pt.btschool.club
// ==/UserScript==
const endpoint = 'https://pt.btschool.club/';
exports.run = async function(param) {
const { data } = await axios.get(`${endpoint}index.php?action=addbonus`);
if (!//.test(data)) throw '访问失败';
const re = /(\d+)/;
if (!re.test(data)) return '今日已签';
const [_, points] = data.match(re);
return '签到获得: ' + points;
};
exports.check = async function(param) {
const { status } = await axios.get(`${endpoint}index.php`);
return status == 200 ? 'OK' : 'FAILED'
};
// ==UserScript==
// @name FRDS
// @namespace https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a
// @version 2.0
// @author janlay
// @loginURL https://pt.keepfrds.com/
// @updateURL https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a/raw/frds.js
// @expire 14400000
// @domain pt.keepfrds.com
// ==/UserScript==
const endpoint = 'https://pt.keepfrds.com/';
exports.run = exports.check = async function(param) {
const { status } = await axios.get(`${endpoint}index.php`);
return status == 200 ? 'OK' : 'FAILED'
};
// ==UserScript==
// @name HD4Fans
// @namespace https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a
// @version 2.0
// @author janlay
// @loginURL https://pt.hd4fans.org/
// @updateURL https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a/raw/hd4fans.js
// @expire 14400000
// @domain pt.hd4fans.org
// ==/UserScript==
const endpoint = 'https://pt.hd4fans.org/';
exports.run = async function(param) {
const params = new URLSearchParams();
params.append('action', 'checkin');
const {status, data} = await axios.post(`${endpoint}checkin.php`, params);
if (status != 200) throw '签到失败';
if (/^Don't/.test(data)) return '今日已签';
return '签到获得: ' + data;
};
exports.check = async function(param) {
const { status } = await axios.get(`${endpoint}index.php`);
return status == 200 ? 'OK' : 'FAILED'
};
// ==UserScript==
// @name M-Team
// @namespace https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a
// @version 2.0
// @author janlay
// @loginURL https://kp.m-team.cc/index.php
// @updateURL https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a/raw/m-team.js
// @expire 14400000
// @domain kp.m-team.cc
// ==/UserScript==
const endpoint = 'https://kp.m-team.cc/';
exports.run = exports.check = async function(param) {
const { status } = await axios.get(`${endpoint}index.php`);
return status == 200 ? 'OK' : 'FAILED'
};
// ==UserScript==
// @name OurBits
// @namespace https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a
// @version 2.0
// @author janlay
// @loginURL https://ourbits.club/
// @updateURL https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a/raw/ourbits.js
// @expire 14400000
// @domain ourbits.club
// ==/UserScript==
const endpoint = 'https://ourbits.club/';
exports.run = async function(param) {
const { data } = await axios.get(`${endpoint}attendance.php`);
if (!//.test(data)) throw '访问失败';
const re = /(\d+)/;
if (!re.test(data)) return '今日已签';
const [_, points] = data.match(re);
return '签到获得: ' + points;
};
exports.check = async function(param) {
const { status } = await axios.get(`${endpoint}index.php`);
return status == 200 ? 'OK' : 'FAILED'
};
// ==UserScript==
// @name SoulVoice
// @namespace https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a
// @version 2.0
// @author janlay
// @loginURL https://pt.soulvoice.club/
// @updateURL https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a/raw/soulvoice.js
// @expire 14400000
// @domain pt.soulvoice.club
// ==/UserScript==
const endpoint = 'https://pt.soulvoice.club/';
exports.run = async function(param) {
const { data } = await axios.get(`${endpoint}attendance.php`);
if (!//.test(data)) throw '访问失败';
const re = /(\d+)/;
if (!re.test(data)) return '今日已签';
const [_, points] = data.match(re);
return '签到获得: ' + points;
};
exports.check = async function(param) {
const { status } = await axios.get(`${endpoint}index.php`);
return status == 200 ? 'OK' : 'FAILED'
};
// ==UserScript==
// @name TCCF
// @namespace https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a
// @version 2.0
// @author janlay
// @loginURL https://et8.org/
// @updateURL https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a/raw/tccf.js
// @expire 14400000
// @domain et8.org
// ==/UserScript==
const endpoint = 'https://et8.org/';
exports.run = exports.check = async function(param) {
const { status } = await axios.get(`${endpoint}index.php`);
return status == 200 ? 'OK' : 'FAILED'
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment