The same way: if you press CTRL + V to jump out of error
Install the plug-in look: added Below a text box and a button, you can paste in this text box, and then press this button can be updated into the evaluation text box
Code:
1 //==userscript==2 //@name tmall_vote3 //@namespace Jshe4 //@include http://ratewrite.tmall.com/*5 //@version 16 //@grant None7 //==/userscript==8 alert (' Hello2 ');9 function embed () {Ten var getelementbyxpath = function (path) { One return Document.evaluate (path, document, NULL, Xpathresult.first_ordered_node_type, NULL). Singlenodevalue; A }; - var jshe_settextarea = function () { - jshe_cell.value = jshe_textarea.value; the }; - Jshe_cell = document.getelementsbyclassname (' rate-quanlity-content ') [0]; - Jshe_textarea = document.createelement (' textarea '); - jshe_textarea.value = ' Hello '; + jshe_textarea.name = ' Jshe_textarea '; - Jshe_cell.parentNode.parentNode.appendChild (Jshe_textarea); + var button = document.createelement (' button '); A button.innerhtml = ' clickme '; at Button.onclick = Jshe_settextarea; - jshe_cell.parentNode.parentNode.appendChild (button); - } - var script = document.createelement (' script '); - script.type = ' text/javascript '; - script.innerhtml = embed + ' \nsettimeout (embed, +); in document.getelementsbytagname (' body ') [0].appendchild (script); -Alert ("Hello3");
View Code
Greasemonkey
Press the first Greasemonkey plug-in: Comments can be pasted ~ ~