removed console.log
authorECHibiki <[email protected]>
Sat, 17 Mar 2018 07:00:55 +0000 (17 03:00 -0400)
committerECHibiki <[email protected]>
Sat, 17 Mar 2018 07:00:55 +0000 (17 03:00 -0400)
Press '.' and do Quoting things on 4chanX.js

index f9e3270..b9ca3b5 100644 (file)
@@ -1,8 +1,8 @@
 // ==UserScript==
 // @name         Press Q and do Quoting things on 4chanX
 // @namespace    http://tampermonkey.net/
-// @version      0.2
-// @description  try to take over the world!
+// @version      1.0
+// @description  Allows you to quote text without creating a quote link item in your post
 // @author             ECHibiki - Sage
 // @match        *://boards.4chan.org/*
 // @grant        none
@@ -16,14 +16,11 @@ var THAT_FIELD_YOU_CHANGE_TO_SET_YOUR_HOTKEY_CHARACTER = ".";
 var qr_open = false;
 
 document.addEventListener("keydown", function(e){
-       console.log(document.activeElement.tagName );
-       console.log(document.activeElement);
        if(e.key == THAT_FIELD_YOU_CHANGE_TO_SET_YOUR_HOTKEY_CHARACTER && !(document.activeElement.tagName == "INPUT" || document.activeElement.tagName == "TEXTAREA")){
                var text = getSelectionText();
                e.preventDefault();
                e.stopPropagation();
                if(!qr_open) document.getElementsByClassName("qr-link")[0].click();
-               console.log(document.getElementsByClassName("qr-link")[0]);
                setTimeout(function(){
                        document.getElementById("qr").getElementsByTagName("TEXTAREA")[0].value += ">" + text + "\n";
                },100);