This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * 批量下载自己已购买的电子书和个人文档 | |
| * 要求:至少有一台Kindle设备。 | |
| * 打开 https://www.amazon.cn/hz/mycd/myx/ ,然后按F12键进入Console(控制台),把代码全部复制并粘贴到控制台中,回车。 | |
| * 然后输入 download("ebook") ,下载所有的电子书 | |
| * 想下载个人文档,则是输入 download("pdoc") | |
| * 下载时如果某个文件下载失败,可以使用刚刚运行的函数(也就是 download() 或者 download("pdoc") )重新开始下载。在网页没被关闭的情况下,程序会忽略已经下载了的文件。 | |
| * 脚本运行期间请不要关闭网页,请允许网页自动下载多个文件 | |
| * 如果网页被关闭了,但恰巧你保存了上次下载任务返回的成功下载的文件列表, | |
| * 可以选择复制该列表中的所有文字,并将其作为 download 的第二个参数传入(如 download("ebook",["something","something else"]) ),这样程序同样会忽略已经下载了的文件。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name 其乐论坛:蒸汽换体力脚本 | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.2 | |
| // @description 其乐论坛:蒸汽换体力脚本。打开https://keylol.com/home.php?mod=spacecp&ac=credit&op=exchange,然后打开油猴插件扩展菜单,即可使用 | |
| // @author 破损的鞘翅 | |
| // @match https://keylol.com/home.php?mod=spacecp&ac=credit&op=exchange | |
| // @icon https://www.google.com/s2/favicons?domain=keylol.com | |
| // @grant GM.registerMenuCommand | |
| // @grant GM.getValue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name 正在玩啥? | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author yige233 | |
| // @match https://www.imdodo.com/* | |
| // @icon https://www.imdodo.com/favicon.ico | |
| // @grant GM.registerMenuCommand | |
| // @require https://cdn.bootcdn.net/ajax/libs/crypto-js/4.1.1/crypto-js.min.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * https://www.bilibili.com/video/BV12142127je/ | |
| * 通过简单的客户端脚本,来获取自称所谓“被加密”的视频。 | |
| * 这是另一个可供“生成加密链接”的直链视频:https://s1.hdslb.com/bfs/static/player/media/error.mp4 | |
| * @param {*} url 要下载的视频的链接。如果没有提供,会试图获取演示视频url。 | |
| * @param {*} referer 该视频链接对应的referer。默认为www.maidenwork.com | |
| * @returns | |
| */ | |
| async function downloadVideo(url, referer = "www.maidenwork.com") { | |
| const demo = await fetch("https://www.maidenwork.com/", { method: "head" }); //先请求特定url,让服务器记录ip。同时试图获取演示视频url |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getCrsfFromCookie() { | |
| return document.cookie.match(/(?<=bili_jct=).*?(?=;)/)?.[0] ?? undefined; | |
| } | |
| function buildFd(data = {}) { | |
| return Object.entries(data).reduce((fd, [key, value]) => { | |
| fd.append(key, value); | |
| return fd; | |
| }, new FormData()); | |
| } | |
| async function selectImageFile() { |