您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
奇了怪了,咋就有问题啊?
// ==UserScript== // @name 统计字数 // @namespace http://tampermonkey.net/ // @version 0.1 // @description 奇了怪了,咋就有问题啊? // @author You // @match https://www.tampermonkey.net/scripts.php // @include http://122.152.215.25:8088/* // @grant none // ==/UserScript== (function() { 'use strict'; $(".classtree-topbar").append($('<a class="calcText" style="'+ 'top: 0px;'+ 'position: absolute;'+ 'background-position: 4px -1000px;'+ 'font-size: 20px;'+ 'text-align: center;'+ 'cursor: pointer;'+ '">字</a>')); $(".calcText").click(function(){ var l = $("#ueditor_0").contents().find("body.view").text().trim().length || $("#document_body").text().trim().length; alert(l); }); // Your code here... })();