Skip to content

Instantly share code, notes, and snippets.

@janlay
Last active June 24, 2024 01:57
Show Gist options
  • Save janlay/d2e136be5940348bb7aee4d9c6b87b5a to your computer and use it in GitHub Desktop.
Save janlay/d2e136be5940348bb7aee4d9c6b87b5a 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.1.2
// @author janlay
// @loginURL https://audiences.me/
// @updateURL https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a/raw/audiences.js
// @expire 604800e3
// @domain audiences.me
// ==/UserScript==
const endpoint = 'https://audiences.me/';
exports.run = async function(param) {
const { status, data } = await axios.get(`${endpoint}attendance.php`);
if (status != 200) throw '访问失败';
if (/未登录/.test(data)) throw '未登录';
const re = /已连续签到 <b>(\d+)<.+?(\d+)/;
if (!re.test(data)) return '今日已签';
const [_, days, points] = data.match(re);
return `+${points} (${days}天)`;
};
exports.check = async function(param) {
var { data } = await axios.get(`${endpoint}index.php`);
return /欢迎回来/.test(data);
};
// ==UserScript==
// @name BTSCHOOL
// @namespace https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a
// @version 2.0.3
// @author janlay
// @loginURL https://pt.btschool.club/
// @updateURL https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a/raw/btschool.js
// @expire 604800e3
// @domain pt.btschool.club
// ==/UserScript==
const endpoint = 'https://pt.btschool.club/';
exports.run = async function(param) {
const { status, data } = await axios.get(`${endpoint}index.php?action=addbonus`);
if (status != 200) throw '访问失败';
if (/未登录/.test(data)) throw '未登录';
const re = /今天签到您获得(\d+)/;
if (!re.test(data)) return '今日已签';
const [_, points] = data.match(re);
return '+' + points;
};
exports.check = async function(param) {
var { data } = await axios.get(`${endpoint}index.php`);
return /欢迎回来/.test(data);
};
// ==UserScript==
// @name FRDS
// @namespace https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a
// @version 2.0.1
// @author janlay
// @loginURL https://pt.keepfrds.com/
// @updateURL https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a/raw/frds.js
// @expire 604800e3
// @domain pt.keepfrds.com
// ==/UserScript==
const endpoint = 'https://pt.keepfrds.com/';
exports.run = exports.check = async function(param) {
var { data } = await axios.get(`${endpoint}index.php`);
return /欢迎回来/.test(data);
};
// ==UserScript==
// @name HD4Fans
// @namespace https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a
// @version 2.0.4
// @author janlay
// @loginURL https://pt.hd4fans.org/
// @updateURL https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a/raw/hd4fans.js
// @expire 604800e3
// @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.get(`${endpoint}attendance.php`);
if (status != 200) throw '访问失败';
if (/未登录/.test(data)) throw '未登录';
const re = /已连续签到 <b>(\d+)<.+?(\d+)/;
if (!re.test(data)) return '今日已签';
const [_, days, points] = data.match(re);
return `+${points} (${days}天)`;
};
exports.check = async function(param) {
var { data } = await axios.get(`${endpoint}index.php`);
return /欢迎回来/.test(data);
};
// ==UserScript==
// @name M-Team
// @namespace https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a
// @version 2.2
// @author janlay
// @loginURL https://kp.m-team.cc/login
// @updateURL https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a/raw/m-team.js
// @expire 604800e3
// @domain api.m-team.cc
// ==/UserScript==
const endpoint = 'https://api.m-team.cc';
exports.run = exports.check = async function(param) {
var { message, code } = (await axios.post(`${endpoint}/api/system/hello`)).data;
if (code == '0') return 'OK';
throw message;
};
// ==UserScript==
// @name OurBits
// @namespace https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a
// @version 2.1.2
// @author janlay
// @loginURL https://ourbits.club/
// @updateURL https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a/raw/ourbits.js
// @expire 604800e3
// @domain ourbits.club
// ==/UserScript==
const endpoint = 'https://ourbits.club/';
exports.run = async function(param) {
const { status, data } = await axios.get(`${endpoint}attendance.php`);
if (status != 200) throw '访问失败';
if (/未登录/.test(data)) throw '未登录';
const re = /已连续签到 <b>(\d+)<.+?(\d+)/;
if (!re.test(data)) return '今日已签';
const [_, days, points] = data.match(re);
return `+${points} (${days}天)`;
};
exports.check = async function(param) {
var { data } = await axios.get(`${endpoint}index.php`);
return /欢迎回来/.test(data);
};
// ==UserScript==
// @name SoulVoice
// @namespace https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a
// @version 2.1.2
// @author janlay
// @loginURL https://pt.soulvoice.club/
// @updateURL https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a/raw/soulvoice.js
// @expire 604800e3
// @domain pt.soulvoice.club
// ==/UserScript==
const endpoint = 'https://pt.soulvoice.club/';
exports.run = async function(param) {
const { status, data } = await axios.get(`${endpoint}attendance.php`);
if (status != 200) throw '访问失败';
if (/未登录/.test(data)) throw '未登录';
const re = /已连续签到 <b>(\d+)<.+?(\d+)/;
if (!re.test(data)) return '今日已签';
const [_, days, points] = data.match(re);
return `+${points} (${days}天)`;
};
exports.check = async function(param) {
var { data } = await axios.get(`${endpoint}index.php`);
return /欢迎回来/.test(data);
};
// ==UserScript==
// @name TCCF
// @namespace https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a
// @version 2.0.1
// @author janlay
// @loginURL https://et8.org/
// @updateURL https://gist.github.com/janlay/d2e136be5940348bb7aee4d9c6b87b5a/raw/tccf.js
// @expire 604800e3
// @domain et8.org
// ==/UserScript==
const endpoint = 'https://et8.org/';
exports.run = exports.check = async function(param) {
var { data } = await axios.get(`${endpoint}index.php`);
return /欢迎回来/.test(data);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment