您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Clicking on the Youtube Trailer embedded video will search for the movie title and year on Google if the video is broken.
// ==UserScript== // @name Broken Trailer Search - YIFY Movies // @namespace https://gf.qytechs.cn/en/users/670188-hacker09?sort=daily_installs // @version 2 // @description Clicking on the Youtube Trailer embedded video will search for the movie title and year on Google if the video is broken. // @author hacker09 // @include https://yts.mx/movies/* // @icon https://yts.mx/assets/images/website/apple-touch-icon-180x180.png // @run-at document-end // @grant none // ==/UserScript== (function() { 'use strict'; if (document.querySelector('.youtube.cboxElement').href === "https://www.youtube.com/embed/?rel=0&wmode=transparent&border=0&autoplay=1&iv_load_policy=3") //If the YT video is broken { //Starts the if condition document.querySelector('.youtube.cboxElement').addEventListener('click', function() { //When the YT video is clicked location.href = `https://www.google.com/search?q=${document.querySelector('.hidden-xs > h1').innerText + ' ' + document.querySelector('.hidden-xs > h2').innerText}&tbm=vid`; //Search on Google }); //Finishes the onclick event listener } //Finishes the if condition })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址