您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This script allows you to drag the video apart and read comments while watching video.
// ==UserScript== // @name Draggable Youtube Video // @namespace http://tampermonkey.net/ // @version 0.1 // @description This script allows you to drag the video apart and read comments while watching video. // @author DKing // @match https://www.youtube.com/watch?v=* // @grant none // ==/UserScript== (function(){ var selected = null, x_pos = 0, y_pos = 0, x_elem = 0, y_elem = 0; document.onmousemove = function (e) { x_pos = document.all ? window.event.clientX : e.pageX; y_pos = document.all ? window.event.clientY : e.pageY; if (selected !== null) { selected.style.left = (x_pos - x_elem) + 'px'; selected.style.top = (y_pos - y_elem) + 'px'; } }; document.onmouseup = function(){selected = null;}; document.getElementById('player-api').style.position = 'fixed'; document.getElementById('player-api').onmousedown = function () { selected = this; x_elem = x_pos - selected.offsetLeft; y_elem = y_pos - selected.offsetTop; return false; }; })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址