您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Forces CKEditor to always use the full editor
当前为
// ==UserScript== // @name Force Full CKEditor // @description Forces CKEditor to always use the full editor // @author qsniyg // @version 0.1 // @namespace Violentmonkey Scripts // @include * // @grant none // @run-at document-start // ==/UserScript== (function() { var ck = null; Object.defineProperty(window, "CKEDITOR", { get: function() { if (ck && ck.replace && !ck.replace.injected) { var oldreplace = ck.replace; oldreplace.injected = true; ck.replace = function() { if (arguments.length >= 2) { if (typeof arguments[1] === "object") { delete arguments[1]["toolbarGroups"]; delete arguments[1]["toolbar"]; delete arguments[1]["removeButtons"]; } } return oldreplace.apply(this, arguments); }; } return ck; }, set: function(x) { ck = x; } }) })();