Notepad in Full Reply mode

http://hackforums.net/showthread.php?tid=5212290

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==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);