Press the first Greasemonkey plug-in: Comments can be pasted ~ ~

Source: Internet
Author: User

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 ~ ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.