您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Convert YT preview in YT embedded video.
// ==UserScript== // @name Netgamers.it - Embed-a-lot! // @namespace Netgamers.it // @version 1.1.1 // @description Convert YT preview in YT embedded video. // @author Crius // @match http*://*netgamers.it/showthread.php* // @grant none // @require https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js // ==/UserScript== /* eslint-env jquery */ // MAIN $(document).ready(() => { $('[id*="ytVideo"]').each(function() { console.log('Detected YT Video:', $(this).attr('title')); $(this).html('<iframe width="560" height="315" src="https://www.youtube.com/embed/'+ $(this).attr('title') +'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'); }); });