Skip to content

Commit

Permalink
Deploying to gh-pages from @ 4b9915a 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
maomao1996 committed Apr 8, 2024
1 parent 9021066 commit 41812ad
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 10 deletions.
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,17 @@

## 脚本列表

| 脚本 | 版本 | 描述 | 安装 |
| :-------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [杀死水印(Kill Watermark)](https://github.com/maomao1996/tampermonkey-scripts/tree/master/packages/kill-watermark) | ![杀死水印(Kill Watermark)](https://img.shields.io/greasyfork/v/459646) | 移除烦人的水印,还你一个干净清爽的页面<br />已适配站点请查看[更新日志 CHANGELOG](https://github.com/maomao1996/tampermonkey-scripts/blob/master/packages/kill-watermark/CHANGELOG.md) | [GreasyFork](https://greasyfork.org/zh-CN/scripts/459646)<br />[GitHub](https://github.com/maomao1996/tampermonkey-scripts/raw/gh-pages/kill-watermark.user.js) |
| [跳转链接修复(移除重定向)](https://github.com/maomao1996/tampermonkey-scripts/tree/master/packages/remove-redirect) | ![跳转链接修复(移除重定向)](https://img.shields.io/greasyfork/v/395970) | 修复跳转链接为站外直链,免去拦截页面点击步骤可直达站外;拦截页面自动跳转<br />已适配站点请查看[更新日志 CHANGELOG](https://github.com/maomao1996/tampermonkey-scripts/blob/master/packages/remove-redirect/CHANGELOG.md) | [GreasyFork](https://greasyfork.org/zh-CN/scripts/395970)<br />[GitHub](https://github.com/maomao1996/tampermonkey-scripts/raw/gh-pages/remove-redirect.user.js) |
| [GitHub 小助手](https://github.com/maomao1996/tampermonkey-scripts/tree/master/packages/github-helper) | ![跳转链接修复(移除重定向)](https://img.shields.io/greasyfork/v/484924) | 优化 GitHub 使用体验的小工具<br />具体功能请查看[更新日志 CHANGELOG](https://github.com/maomao1996/tampermonkey-scripts/blob/master/packages/github-helper/CHANGELOG.md) | [GreasyFork](https://greasyfork.org/zh-CN/scripts/484924)<br />[GitHub](https://github.com/maomao1996/tampermonkey-scripts/raw/gh-pages/github-helper.user.js) |
| [115 小助手](#115-helper-115-小助手) | ![115 小助手](https://img.shields.io/greasyfork/v/413142) | 115 网盘体验增强(还原顶部菜单栏链接任务入口、一键搜索、SHA1 快速查重/自动查重、删除空文件夹、列表显示文件 SHA1 信息) | [GreasyFork](https://greasyfork.org/zh-CN/scripts/413142) |
| [慕课网小助手](#imooc-helper-慕课小助手) | ![慕课网小助手](https://img.shields.io/greasyfork/v/396378) | 问答区快速查看问答详情、自动播放下一节视频 | [GreasyFork](https://greasyfork.org/zh-CN/scripts/396378) |
| [贴吧小助手](#tieba-helper-贴吧小助手) | ![贴吧小助手](https://img.shields.io/greasyfork/v/419001) | 自动顶贴回复、移除广告和碍眼模块 | [GreasyFork](https://greasyfork.org/zh-CN/scripts/419001) |
| [黑白网页颜色还原](#color-restore-黑白网页颜色还原) | ![黑白网页颜色还原](https://img.shields.io/greasyfork/v/455825) | 移除灰度滤镜,还你一个五彩斑斓的网页 | [GreasyFork](https://greasyfork.org/zh-CN/scripts/455825) |
| [ChatGPT 小助手](#chatgpt-helper-chatgpt-小助手) | ![ChatGPT 小助手](https://img.shields.io/greasyfork/v/462447) | 添加快捷指令(prompts) | [GreasyFork](https://greasyfork.org/zh-CN/scripts/462447) |
| 脚本 | 版本 | 描述 | 安装 |
| :-------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [杀死水印(Kill Watermark)](https://github.com/maomao1996/tampermonkey-scripts/tree/master/packages/kill-watermark) | ![杀死水印(Kill Watermark)](https://img.shields.io/greasyfork/v/459646) | 移除烦人的水印,还你一个干净清爽的页面<br />已适配站点请查看[更新日志 CHANGELOG](https://github.com/maomao1996/tampermonkey-scripts/blob/master/packages/kill-watermark/CHANGELOG.md) | [GreasyFork](https://greasyfork.org/zh-CN/scripts/459646)<br />[GitHub](https://github.com/maomao1996/tampermonkey-scripts/raw/gh-pages/kill-watermark.user.js) |
| [跳转链接修复(移除重定向)](https://github.com/maomao1996/tampermonkey-scripts/tree/master/packages/remove-redirect) | ![跳转链接修复(移除重定向)](https://img.shields.io/greasyfork/v/395970) | 修复跳转链接为站外直链,免去拦截页面点击步骤可直达站外;拦截页面自动跳转<br />已适配站点请查看[更新日志 CHANGELOG](https://github.com/maomao1996/tampermonkey-scripts/blob/master/packages/remove-redirect/CHANGELOG.md) | [GreasyFork](https://greasyfork.org/zh-CN/scripts/395970)<br />[GitHub](https://github.com/maomao1996/tampermonkey-scripts/raw/gh-pages/remove-redirect.user.js) |
| [GitHub 小助手](https://github.com/maomao1996/tampermonkey-scripts/tree/master/packages/github-helper) | ![GitHub 小助手](https://img.shields.io/greasyfork/v/484924) | 优化 GitHub 使用体验的小工具<br />具体功能请查看[更新日志 CHANGELOG](https://github.com/maomao1996/tampermonkey-scripts/blob/master/packages/github-helper/CHANGELOG.md) | [GreasyFork](https://greasyfork.org/zh-CN/scripts/484924)<br />[GitHub](https://github.com/maomao1996/tampermonkey-scripts/raw/gh-pages/github-helper.user.js) |
| [复制磁力链接](https://github.com/maomao1996/tampermonkey-scripts/tree/master/packages/copy-magnet-link) | ![复制磁力链接](https://img.shields.io/greasyfork/v/491959) | 一键复制页面内所有磁力链接<br />具体功能请查看[更新日志 CHANGELOG](https://github.com/maomao1996/tampermonkey-scripts/blob/master/packages/copy-magnet-link/CHANGELOG.md) | [GreasyFork](https://greasyfork.org/zh-CN/scripts/491959)<br />[GitHub](https://github.com/maomao1996/tampermonkey-scripts/raw/gh-pages/copy-magnet-link.user.js) |
| [115 小助手](#115-helper-115-小助手) | ![115 小助手](https://img.shields.io/greasyfork/v/413142) | 115 网盘体验增强(还原顶部菜单栏链接任务入口、一键搜索、SHA1 快速查重/自动查重、删除空文件夹、列表显示文件 SHA1 信息) | [GreasyFork](https://greasyfork.org/zh-CN/scripts/413142) |
| [慕课网小助手](#imooc-helper-慕课小助手) | ![慕课网小助手](https://img.shields.io/greasyfork/v/396378) | 问答区快速查看问答详情、自动播放下一节视频 | [GreasyFork](https://greasyfork.org/zh-CN/scripts/396378) |
| [贴吧小助手](#tieba-helper-贴吧小助手) | ![贴吧小助手](https://img.shields.io/greasyfork/v/419001) | 自动顶贴回复、移除广告和碍眼模块 | [GreasyFork](https://greasyfork.org/zh-CN/scripts/419001) |
| [黑白网页颜色还原](#color-restore-黑白网页颜色还原) | ![黑白网页颜色还原](https://img.shields.io/greasyfork/v/455825) | 移除灰度滤镜,还你一个五彩斑斓的网页 | [GreasyFork](https://greasyfork.org/zh-CN/scripts/455825) |
| [ChatGPT 小助手](#chatgpt-helper-chatgpt-小助手) | ![ChatGPT 小助手](https://img.shields.io/greasyfork/v/462447) | 添加快捷指令(prompts) | [GreasyFork](https://greasyfork.org/zh-CN/scripts/462447) |

## 115-helper 115 小助手

Expand Down
60 changes: 60 additions & 0 deletions copy-magnet-link.user.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
// ==UserScript==
// @name 复制磁力链接
// @description 一键复制页面内所有磁力链接(自动过滤重复磁力链接)
// @namespace maomao1996.copy-magnet-link
// @version 1.0.0
// @author maomao1996
// @homepage https://github.com/maomao1996/tampermonkey-scripts
// @supportURL https://github.com/maomao1996/tampermonkey-scripts/issues
// @license MIT
// @match *://*/*
// @exclude *://localhost:*/*
// @exclude *://127.0.0.1:*/*
// @exclude *://0.0.0.0*
// @exclude *://192.168.*
// @grant GM_addStyle
// @grant GM_setClipboard
// @grant GM_notification
// ==/UserScript==
!function() {
"use strict";
var t = '.femm-copy-magnet-link{bottom:20vh;cursor:pointer;opacity:.5;position:fixed;right:16px;transform:translateX(40px);transition:transform .3s,opacity .2s;z-index:1996}.femm-copy-magnet-link:after{bottom:0;content:"";display:block;left:0;position:absolute;top:0;width:150%}.femm-copy-magnet-link:before{background-color:rgba(0,0,0,.85);border-radius:6px;bottom:120%;color:#e6f4ff;content:attr(tips);font-size:12px;opacity:0;padding:8px;position:absolute;right:0;text-align:center;transition:opacity .25s .1s;white-space:nowrap;z-index:1}.femm-copy-magnet-link:hover{opacity:1;transform:translateX(10px)}.femm-copy-magnet-link:hover:before{opacity:1}.femm-copy-magnet-link-btn{align-items:center;background-color:#fff;border-radius:50%;box-shadow:0 6px 16px 0 rgba(0,0,0,.08),0 3px 6px -4px rgba(0,0,0,.12),0 9px 28px 8px rgba(0,0,0,.05);display:flex;font-size:16px;height:40px;justify-content:center;overflow:hidden;transition:background-color .2s;width:40px}.femm-copy-magnet-link-btn:hover{background-color:rgba(0,0,0,.06)}';
!function(t, e) {
void 0 === e && (e = {});
var n = e.insertAt;
if (t && "undefined" != typeof document) {
var o = document.head || document.getElementsByTagName("head")[0], c = document.createElement("style");
c.type = "text/css", "top" === n && o.firstChild ? o.insertBefore(c, o.firstChild) : o.appendChild(c),
c.styleSheet ? c.styleSheet.cssText = t : c.appendChild(document.createTextNode(t));
}
}(t), function() {
if (window.self === window.top) {
GM_addStyle(t);
var e = function(t) {
t && GM_notification({
timeout: 2e3,
text: t
});
}, n = function(t) {
return t ? (t.innerHTML.match(/[0-9a-fA-F]{40}/gm) || []).map((function(t) {
return "magnet:?xt=urn:btih:" + t.replace(/&.+/gm, "");
})) : [];
};
n(document.querySelector("body")).length && (document.querySelector("#femm-copy-magnet-link") || document.querySelector("body").insertAdjacentHTML("beforeend", '<div id="femm-copy-magnet-link" class="femm-copy-magnet-link" tips="\u590d\u5236\u9875\u9762\u5185\u7684\u78c1\u529b\u94fe\u63a5"><div class="femm-copy-magnet-link-btn"><svg viewBox="64 64 896 896" focusable="false" data-icon="copy" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M232 706h142c22.1 0 40 17.9 40 40v142h250V264H232v442z" fill="#e6f4ff"></path><path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32z" fill="#1677ff"></path><path d="M704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" fill="#1677ff"></path></svg></div></div>'),
document.querySelector("#femm-copy-magnet-link").addEventListener("click", (function() {
var t = n(document.querySelector("body"));
document.querySelectorAll("iframe").forEach((function(e) {
try {
("" === e.src || e.src.includes(location.host)) && (t = t.concat(n(e.contentWindow.document.body)));
} catch (t) {
console.log("\u83b7\u53d6 iframe \u5f02\u5e38", t);
}
}));
var o = t.length;
window.Set && (t = Array.from(new Set(t))), t.length ? GM_setClipboard(t.join("\n"), "text", (function() {
return e("\u78c1\u529b\u603b\u6570: ".concat(o, "\n\u91cd\u590d\u78c1\u529b: ").concat(o - t.length, "\n\u5df2\u6210\u529f\u590d\u5236 ").concat(t.length, " \u6761\u78c1\u529b\u94fe\u63a5"));
})) : e("\u5f53\u524d\u9875\u9762\u6ca1\u6709\u78c1\u529b\u94fe\u63a5");
})));
}
}();
}();

0 comments on commit 41812ad

Please sign in to comment.