someguyMTofficial / SomeGuy's Textarea for keeping notes.

/**
  The MIT License (MIT)

  Copyright (c) 2014 Jeppe Rune Mortensen

  Permission is hereby granted, free of charge, to any person obtaining a copy of
  this software and associated documentation files (the "Software"), to deal in
  the Software without restriction, including without limitation the rights to
  use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
  the Software, and to permit persons to whom the Software is furnished to do so,
  subject to the following conditions:

  The above copyright notice and this permission notice shall be included in all
  copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
  FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
  COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
**/
// ==UserScript==
// @name         SomeGuy's Textarea for keeping notes.
// @namespace    http://someguy.pe.hu/
// @version      0.1
// @description  This is a small script made by me which adds a small box below the piano which allows you to paste in notes for a song and practice without sending it in chat.
// @author       ๖ۣۜSomeGuy™(⌐■_■)=ε/̵͇̿̿/'̿'̿ ̿
// @include      http://www.multiplayerpiano.com/*
// @match        http://www.multiplayerpiano.com/script.js
// @grant        none
//@copyright     someguyMTofficial aka ๖ۣۜSomeGuy™(⌐■_■)=ε/̵͇̿̿/'̿'̿ ̿
// @license         MIT
//@supportURL  mailto://someguymtofficial@gmail.com/
// ==/UserScript==
$(function() {
    // My Name Belongs To Me // and don't even try to impersonate me //..
    
    
    // You can edit the value of this variable to change the WIDTH of the Textarea so it fit's to your screensize. //
    
    var Width = "1238px";
    
    // !-- end --! //
       $("body").append("<textarea spellcheck='false' id='notes'></textarea><style>textarea#notes.practice_mode{border-color: rgba(0, 0, 0, 1);opacity: 1;background-color: rgba(0, 0, 0, 0.48);color: #FFF;top: 220px;/* font-family: Arial; *//* line-height: 19px; */height: 223px;overflow-y: scroll;overflow-x: visible;}.practice_mode {border-color:rgba(0,0,0,0.3);opacity: 0.3;background-color:rgba(0,0,0,0.3);transition:1s all ease-in-out;}#notes:focus {z-index: 404;}#notes{resize: none;color: #fff;background-color: rgba(0, 0, 0, 0.51);/* font-weight: bold; */position: fixed;z-index: 400;margin-top: -26px;left: 43px!important;width: " + Width + ";height: 50px;text-shadow: 0 0 1px #000;color: #FFF;font-size: 16px;font-family: 'JennaSue', Arial;transition: 0.1s box-shadow,0.1s background-color ease-in-out;}#notes:focus{box-shadow:0 0 25px #000;background-color:rgba(0,0,0,.5);</style>");  
        
    
        $("body").append('<button id="practice" style=" position: absolute; bottom: 162px; z-index: 401; right: 79px;" class="">practice mode</button>');
        
        $("#practice").click(function(){
            $("#chat").toggleClass("practice_mode");
            $("#bottom").toggleClass("practice_mode");
            $("#piano canvas").toggleClass("practice_mode");
            $("#clear_").toggleClass("practice_mode");
            $("#notes").toggleClass("practice_mode");
            $("#play_").toggleClass("practice_mode");
            $(this).toggleClass("practice_mode");
        });
       $("#notes").focusin(function() {
            $(this).addClass("listen");
            releaseKeyboard();
        });
        $("#notes").focusout(function() {
            $(this).removeClass("listen");
            captureKeyboard();
        });
});