您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Sets href on related videos so they work like normal links
// ==UserScript== // @name Bing Video Search - Related Videos Links Href // @namespace http://tampermonkey.net/ // @version 0.1 // @description Sets href on related videos so they work like normal links // @author csomerville // @license MIT // @run-at document-idle // @match *://*.bing.com/videos/* // @grant none // ==/UserScript== (function() { 'use strict'; const callback = function(mutationsList, observer) { for (let mutation of mutationsList) { if (mutation.type === 'childList' && mutation.addedNodes.length) { mutation.addedNodes.forEach(node => { if (node.matches && node.matches('#mm_relvid')) { Array.from(document.getElementsByClassName("vta isv")).forEach((el) => { let u = new URL(window.location); u.searchParams.set("mid", JSON.parse(el.getElementsByClassName("vrhdata")[0].getAttribute('vrhm')).mid); el.setAttribute("href", u); }); } }); } } }; const observer = new MutationObserver(callback); const config = { childList: true, subtree: true }; observer.observe(document.body, config); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址