Skip to content

Instantly share code, notes, and snippets.

View Masterain98's full-sized avatar
🎯
Focusing

Masterain Masterain98

🎯
Focusing
View GitHub Profile
@Masterain98
Masterain98 / 漫读券.js
Created September 17, 2023 06:47 — forked from xmdhs/漫读券.js
批量使用漫读券
(async () => {
let u = new URL(location.href);
let mc = u.pathname.match(/detail\/mc(\d+)/);
if (mc.length != 2) {
return
}
let mcid = mc[1];
let r = await fetch("https://manga.bilibili.com/twirp/comic.v1.Comic/ComicDetail?device=pc&platform=web", {
"headers": {
@Masterain98
Masterain98 / index.php
Created January 9, 2021 04:37 — forked from null-dev/index.php
1fichier.com direct link generator (PHP)
<?php
if(!isset($_GET['a'])) {
die('<form action="" method="get"><input type="text" name="a"/><input type="submit"/></form>');
}
$url = "https://1fichier.com/?" . urlencode($_GET['a']) . "?auth=1&inline";
stream_context_set_default(array(
'http' => array(
'method' => 'GET',
'header' => 'Authorization: Basic ' . '[BASE64 encoded login credentials. Format: "user:pass" (without quotes)]'