您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
http://hackforums.net/showthread.php?tid=5212290
// ==UserScript== // @name Notepad in Full Reply mode // @namespace Notepad in Full Reply // @description http://hackforums.net/showthread.php?tid=5212290 // @include *hackforums.net/newreply.php?tid=* // @include *hackforums.net/newthread.php?fid=* // @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js // @version 0.1.1 // @grant GM_getValue // @grant GM_setValue // ==/UserScript== var notepadContent = GM_getValue("notepadContent", "Put content here and click save"); setTimeout(function() { console.log("azeae"); $("head").append("<style>.messageEditor { float: left }</style>"); $("table.tborder:nth-child(2) > tbody:nth-child(1) > tr:nth-child(4) > td:nth-child(2)").attr("style", "width: 50%"); $("#message_old").after("<div style='float: center; margin-left: " + ($(".messageEditor").width() + 70) + "px;' ><textarea id='notepad' style='height:"+($(".messageEditor").height() - 70)+"px;width:200px'>"+notepadContent+"</textarea><div><button id='saveNotepad' class='button'>Save</button></div></div>"); $("#saveNotepad").on("click", function() { GM_setValue("notepadContent", $("#notepad").val()); return false; }); }, 600);