您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Easy to edit anything in website.
- // ==UserScript==
- // @name Website to editor
- // @namespace http://tampermonkey.net/
- // @icon https://scontent.fdad1-1.fna.fbcdn.net/v/t1.0-9/10346186_1645759148993427_6744387242769246115_n.jpg?_nc_cat=102&_nc_ht=scontent.fdad1-1.fna&oh=b460d464946fcbcb92d4783d903412ef&oe=5C8F4A97
- // @version 0.1
- // @description Easy to edit anything in website.
- // @author HuuKhanh
- // @include http://*/*
- // @include https://*/*
- // @grant none
- // ==/UserScript==
- /*
- - Enter rate to search bar then press '`' to change raterate
- */
- (function() {
- 'use strict';
- document.getElementsByTagName('html')[0].setAttribute("contenteditable", "false");
- document.getElementsByTagName('html')[0].addEventListener("keydown", function(event) {
- var x = event.which || event.keyCode;
- var isShiftKey = event.shiftKey;
- if(x == 69) {
- var isEnable = document.getElementsByTagName('html')[0].getAttribute("contenteditable");
- console.log(isEnable);
- console.log(isShiftKey);
- if(isEnable === 'false' && isShiftKey) {
- document.getElementsByTagName('html')[0].setAttribute("contenteditable", "true");
- }
- else {
- document.getElementsByTagName('html')[0].setAttribute("contenteditable", "false");
- }
- }
- }) ;
- })();