您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds a button on YTS movie pages to search the movie title on MagnetDL.
当前为
// ==UserScript== // @name MagnetDL Search - YIFY Movies // @namespace https://greasyfork.org/en/users/670188-hacker09?sort=daily_installs // @version 5 // @description Adds a button on YTS movie pages to search the movie title on MagnetDL. // @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'; document.querySelector(".button-green-download2-big.hidden-xs.hidden-sm").insertAdjacentHTML('afterend', `<a onclick="document.querySelector('.modal-download').style.display = 'none'; location.href='https://www.magnetdl.com/search/?q=${document.querySelector('.hidden-xs > h1').innerText.replace(/\s+/g, '-').replace(/'/g, '').toLowerCase()}&m=1';" class="torrent-modal-download button-green-download2-big hidden-xs hidden-sm" href="javascript:void(0);"><span class="icon-in"></span>Search on MagnetDL</a>`); //Adds a button on YTS movie pages to search the movie title MagnetDL and hides the download modal })();