Notepad in Full Reply mode

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

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