您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add custom btn for setting menubar
当前为
// ==UserScript== // @name Setting btn - [ X ] // @namespace http://tampermonkey.net/ // @version 2.9 // @description Add custom btn for setting menubar // @copyright 2022, teri.fash (https://openuserjs.org/users/964055-teri-fash) // @author teri.fash <[email protected]> // @license MIT // @match *://*.xvideos.com/video* // @icon https://www.xvideos.com/favicon-32x32.png // @run-at document-start // ==/UserScript== (()=> { const styles = { zIndex: 1000, } function setingsUpinit(seti) { let position = window.localStorage.getItem(`video-menu-position`); // maybe need added class "init-ok" seti.addClass(`btn-settings-top btn-settings-top--${position === 'left' ? 'right' : 'left'}`).css(styles); $('body').prepend(seti); } function init() { const settings = $('#site-settings').clone(); setingsUpinit(settings); } window.addEventListener('DOMContentLoaded', init); })();