您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
7/21/2022, 7:35:45 AM
// ==UserScript== // @name Reboot Tube But Nice // @namespace Violentmonkey Scripts // @match https://reboot.tube/x/* // @grant none // @version 1.1 // @license GPLv3 // @author Gum Coblin // @description 7/21/2022, 7:35:45 AM // ==/UserScript== // Player Size document.getElementById("videowrap").style.width = "85%" // Chat visibility document.getElementById("chatwrap").style.display = "none" // Empty footer visibilty document.getElementById("footer").style.display = "none" // Padding on the left of the player to center it document.getElementById("videowrap").style.paddingLeft = "15%" // Set control width to 100% so the rightmost controls are on the right of the screen document.getElementById("rightcontrols").style.width = "100%" var currentURL = "" setTimeout(CreateLink, 5000) function CreateLink(){ // Create a variable containing the link to the currently playing video currentURL = document.getElementById("ytapiplayer_html5_api").src console.log(currentURL) // Create a link to the URL from above const myLink = document.createElement("a"); myLink.href = currentURL myLink.style.color = "white" myLink.innerHTML = currentURL document.getElementById("mainpage").appendChild(myLink) }