您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
一鍵複製訂閱
// ==UserScript== // @name 獲取Bilibili動態訂閱 // @version 0.0.1 // @description 一鍵複製訂閱 // @match https://www.bilibili.com/* // @grant GM_setClipboard // @license MIT // @namespace https://www.example.com/ // ==/UserScript== (function () { 'use strict'; function get_link() { var div_name = document.querySelector('.name'); if (div_name) { // Get the link inside the div var link = div_name.querySelector('a'); var rss_link_fix = "https://rsshub.app/bilibili/user/dynamic/"; if (link) { // Get the href of the link var href = link.href; // 分割網址並且取得最後一個值 var lastValue = href.split('/').pop(); var rss_link = rss_link_fix + lastValue; // Show the last value in an alert return rss_link; } } } var current_rss_link = get_link(); function click_to_copy_url() { var div_name = document.querySelector('.name'); if (div_name) { // Get the first link inside the div var link = div_name.querySelector('a'); if (link) { // Set the new href value link.setAttribute('href', current_rss_link); // Add a click event listener to the link link.addEventListener('click', function (event) { // Prevent the default link behavior event.preventDefault(); GM_setClipboard(current_rss_link); // Copy the new href value to the clipboard navigator.clipboard.writeText(newHref); }); } } } click_to_copy_url(); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址