您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Showing the current basic and recommended format for a User script.
当前为
// ==UserScript== // @namespace https://openuserjs.org/users/neurodeep // @name Getting Started with a User Script // @description Showing the current basic and recommended format for a User script. // @copyright 2018, neurodeep (https://openuserjs.org/users/neurodeep) // @license OSI-SPDX-Short-Identifier // @version 0.0.0 // @include https://https://www.youtube.com/watch* // @grant none // ==/UserScript== // ==OpenUserJS== // @author neurodeep // ==/OpenUserJS== // Continuos Integration // Adds Like/Dislike buttons and keyboard shortcuts to fullscreen. // commit script // test It (so write tests(selenium)) // deploy to userscripts watchLater = document.querySelector('.ytp-button.ytp-watch-later-button'); like = document.querySelectorAll('ytd-toggle-button-renderer.force-icon-button')[0]; dislike = document.querySelectorAll('ytd-toggle-button-renderer.force-icon-button')[1] watchLater.parentElement.appendChild(like); watchLater.parentElement.appendChild(dislike);