10 practical script code tools

Source: Internet
Author: User

The following describes 10 practical
Browsing assistance
Tidy read CopyCode The Code is as follows: javascript :( function () {var S = document. createelement ("script"); S. charset = "gb2312"; S. language = "JavaScript"; S. type = "text/JavaScript"; S. src = "http://tidyread.com/tidyread.js? U = "+ encodeuricomponent (document. Location. href) +" & t = "+ encodeuricomponent (document. Title); document. Body. appendchild (s )})();

Clean up the messy pages, and you can set your preferences as needed.

Show Password Copy codeThe Code is as follows: javascript :( function () {var S, F, J, F, I; S = ""; F = document. forms; For (j = 0; j <F. length; ++ J) {f = f [J]; for (I = 0; I <F. length; ++ I) {If (F [I]. type. tolowercase () = "password") S + = f [I]. value + "N" ;}}if (s) Alert ("passwords in forms on this page: NN" + S ); else alert ("there are no passwords in forms on this page. ");})();

View the password displayed as *** on the webpage. I think it is very useful. For example, when chrome remembers the password and you forget it...

Dictionary.com Copy codeThe Code is as follows: javascript :( function () {q = Document. getselection (); If (! Q) q = prompt ('dictionary. com search: '); If (q) location. href = 'HTTP: // dictionary.reference.com/search? R = 1 & Q = '+ escape (q );})()

Translation of the selected words, which is less than English translation, is suitable for English friends with a certain level.

Restore selectingCopy codeThe Code is as follows: javascript :( function () {function R (A) {ona = "on" + A; If (window. addeventlistener) window. addeventlistener (A, function (e) {for (VAR n = E. originaltarget; n = n. parentnode) N [ona] = NULL ;}, true); window [ona] = NULL; document [ona] = NULL; If (document. body) document. body [ona] = NULL;} r ("click"); R ("mousedown"); R ("mouseup"); R ("selectstart ");}) ();

Some websites cannot select text, which can be restored. It seems that Chrome cannot be used.

Clear website cookies Copy codeThe Code is as follows: javascript :( function () {c = document. cookie. split (";"); For (D = ". "+ location. host; D = ("" + D ). substr (1 ). match (/\.. * $/) for (SL = 0; SL <2; ++ SL) for (P = "/" + location. pathname; P = P. substring (0, P. lastindexof ('/') for (I in c) if (C = C [I]) {document. cookie = C + "; domain =" + D. slice (SL) + "; Path =" + P. slice (1) + "/" + "; expires =" + new date (new date ). gettime ()-1e11 ). togmtstring ()}})()

Chrome cannot clear website cookies.

Developer Tools

Reload CSS
Copy codeThe Code is as follows: javascript: void (setinterval (function () {var Qs = '? '+ New date (). gettime (), l, I = 0; while (L = document. getelementsbytagname ('link') [I ++]) {If (L. rel & 'stylesheet '= L. rel. tolowercase () {If (! L. _ H) L. _ H = L. href; L. href = L. _ H + qs}, 2000 ));

Make the web page constantly reload CSS.

Spry Media
Copy codeThe Code is as follows: javascript: function fnstartdesign (Surl) {var nscript = document. createelement ('script'); nscript. setattribute ('language ', 'javascript'); nscript. setattribute ('src', Surl); document. body. appendchild (nscript);} fnstartdesign ('HTTP: // www. sprymedia. co. UK/design/Media/JS/design-loader.js ');

Powerful tools. Includes: grid, ruler, unit measurement, cross line. It is recommended that the web designer give it a try.

Layout Grid
Copy codeThe Code is as follows: javascript: void (mydiv = document. createelement ('div '); void (mybody = document. getelementsbytagname ('body') [0]); void (mydiv. style. background = 'url (http://www.andybudd.com/images/layoutgrid.png) '); void (mydiv. style. position = 'absolute '); void (mydiv. style. width = '000000'); void (mydiv. style. height = '20140901'); void (mydiv. style. top = '0'); void (mydiv. style. left = '0'); void (mybody. appendchild (mydiv ));

Generate beautiful grids.

Print Screen Copy codeThe Code is as follows: javascript: window. Location = 'HTTP: // aviary.com/'+ location. href;

Another recommended tool. Capture the current page, and you can automatically go to aviary.com to edit the image.

Download as PDF
Copy codeThe Code is as follows: javascript: void (window. Open ('HTTP: // www.javasdownload.org/web2#/default.aspx? Left = 0 & Right = 0 & Top = 0 & Bottom = 0 & page = 0 & curl = '+ document. Location. href ));

The stored webpage is a PDF file.

Spry media is really easy to use.

Occasionally, the Network may fail to run properly due to slow speed. Others are tested and the effect is good.

After use, first open the page you want to operate, then copy the script code, copy it to the IE Address Bar, and press enter to run it (you cannot click the next RELOAD)

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.