Skip to content

Instantly share code, notes, and snippets.

View MahouSirin's full-sized avatar
😴
ffs i'm tired

Quantum MahouSirin

😴
ffs i'm tired
View GitHub Profile
@@||arca.live/static/assets/js/pagead.min.js^
@@||arca.live/api/pagead^
arca.live#@#div.ad
arca.live##div.ad:has(> .sponsored)
arca.live##div.ad:has(> .adsbygoogle)
@MahouSirin
MahouSirin / arcaComment.user.js
Last active March 21, 2022 11:47
몰라레후
// ==UserScript==
// @name Arca Commenter
// @version 0.0.3
// @author Raiden-Ei
// @description Arca Live Extension
// @match https://*.arca.live/*
// @match https://arca.live/*
// @exclude-match https://st*.arca.live/*
// @namespace Raiden-Ei
// @noframes
@MahouSirin
MahouSirin / obfuscated.html
Last active March 26, 2022 14:32
Use at your own risk
<!doctype html>
<html lang="ko">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no" />
<title>Korean Olympic Cheating Moments</title>
</head>
<body>
<p>Your browser does not support HTML5.</p>
</body>
{
"10000002": "카미사토 아야카",
"10000003": "진",
"10000005": "아이테르",
"10000006": "리사",
"10000007": "루미네",
"10000014": "바바라",
"10000015": "케이아",
"10000016": "다이루크",
"10000020": "레이저",
@MahouSirin
MahouSirin / hoyolab-api.js
Last active February 24, 2023 13:59
arca.live @산호궁아이피
#!/usr/bin/env node
const axios = require('axios');
const crypto = require('crypto');
const path = require('path');
(async () => {
const cookie = 'REPLACE_WITH_COOKIE';
const encryptedCookie = Object.entries(parseCookie(cookie)).map(([key, value]) => {
// ID, 토큰 같은 정보만 비공개
if (['ltuid', 'ltoken', 'account_id', 'cookie_token'].includes(key)) {
const crypto = require('crypto');
module.exports = () => {
const time = Math.floor(Date.now() / 1000);
const DS_SALT = '6cqshh5dhw73bzxn20oexa9k516chk7s';
const randomChar = randomString(6);
const data = `salt=${DS_SALT}&t=${time}&r=${randomChar}`;
const hash = crypto.createHash('md5').update(data).digest('hex');
return `${time},${randomChar},${hash}`;
}
@MahouSirin
MahouSirin / backup.js
Created July 13, 2021 10:31
PAIMON.MOE Backup/Restore Script
var keys = ['wish-counter-beginners', 'wish-counter-character-event', 'wish-counter-standard', 'wish-counter-weapon-event'];
var backupData = {};
(async () => {
for await (const key of keys) {
backupData[key] = await localforage.getItem(key);
}
copyToClipboard(JSON.stringify(backupData));
console.log('Copy completed!!!');
})();