您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
复制当前页面标题及网址
当前为
// ==UserScript== // @name 复制标题网址(QQ群:189574683) // @namespace https://www.wdssmq.com // @description 复制当前页面标题及网址 // @include http://* // @include https://* // @version 1.7 // @grant GM_registerMenuCommand // @grant GM_setClipboard // @url https://gf.qytechs.cn/zh-CN/scripts/28056 // jshint esversion:6 // ==/UserScript== (function () { /* jshint multistr:true */ "use strict"; if (window.frames.length != parent.frames.length) { // alert('在iframe中'); return false; } let url = document.location.href.replace("?tdsourcetag=s_pctim_aiomsg", ""); url = url.replace("?from=manga_person", ""); let title = document.title; if (location.host == "gf.qytechs.cn") { url = url.replace(/(\/\d+)-.+/, "$1"); } GM_registerMenuCommand("复制", () => { GM_setClipboard(document.title + "\n" + url); //alert("复制成功:\r\n" + document.title + '\n' + document.location.href); }); GM_registerMenuCommand("复制HTML", () => { GM_setClipboard( `<p>${title}</p><p><a href="${url}" target="_blank" title="${title}">${url}</a></p>` ); //alert("复制成功:\r\n" + document.title + '\n' + document.location.href); }); function $n(e) { return document.querySelector(e); } function $na(e) { return document.querySelectorAll(e); } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址