Notepad2PM

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

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                Notepad2PM
// @author              Hash G.
// @namespace           HF
// @description         http://hackforums.net/showthread.php?tid=5124241
// @include             *hackforums.net/private.php?action=*
// @require             http://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js
// @version             1.0
// @grant               GM_getValue
// @grant               GM_setValue
// ==/UserScript==



setTimeout(function() {
	for (i = 1; i < 7; i++) {
		$(".quick_keys > form:nth-child(1) > table:nth-child(2) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(2) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child("+i+")").append("<td class='trow2' id='notepad-"+i+"'></td>");
	}
	$("#notepad-1").attr("class", "thead");
	$("#notepad-5").append("<div id='notepad'><textarea id='textNotepad' style='width: 300px; height: 411px;'>" + GM_getValue("notepad") + "</textarea></div>");
	$("#notepad-6").append("<button id='updateNotepad' type='button' class='button' style='display: block; margin: auto;'>Update your notepad</button>");
	
	
	
	$("#updateNotepad").on("click", function() {
		notepad = $("#textNotepad").val();
		GM_setValue("notepad", notepad);
		$("#updateNotepad").html("Updated!");
		setTimeout(function () {
			$("#updateNotepad").html("Update your notepad again");
		}, 2000);
	});
	
}, 200);