您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hide sidebar and full screen video.
// ==UserScript== // @name LWHH Full Screen Video. // @namespace http://fb.com/Th3Hopper // @version 0.2 // @description Hide sidebar and full screen video. // @author Ramin // @match *://*learnwith.hasinhayder.com/*/course/* // @run-at document-end // @require https://code.jquery.com/jquery-3.3.1.min.js // @grant none // ==/UserScript== $(".main-content").prepend("<div class=\"extend-wrap\"><button id=\"extend-btn\" type=\"button\" class=\"btn btn-danger btn-sm\">close</button> <button type=\"button\" class=\"btn btn-success btn-sm\" id=\"close-btn\">open</button></div>"); $("#extend-btn").click(function () { $(".main-content").prepend("<div class=\"extend-css\"></div>"); $(".extend-css").append("<style>.main-content{width: 100%;padding:0;margin:0}.side-bar{opacity: 0;display:none}h2#vidtitle{display: none}</style>"); }); $("#close-btn").click(function () { $(".extend-css").remove(); });