Home > Web Front-end > JS Tutorial > body text

10 Practical Script Code Tools_Javascript Skills

WBOY
Release: 2016-05-16 18:28:17
Original
1254 people have browsed it

Here are 10 practical
browsing aids
Tidy Read

Copy code 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 those messy pages, and you can set preferences freely, which is very powerful.

Show Password
Copy code The code is as follows:
javascript :(function(){var s,F,j,f,i; s = ""; F = document.forms; for(j=0; j

View the web page The password shown is *****. I find it useful, like when Chrome remembers your password and you forget it...

Dictionary.com
Copy the code The 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); })()

Translate selected Words, the only fly in the ointment is the English-English translation, suitable for friends with a certain level of English.

restore selecting
Copy code The 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=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 prohibit text selection, it can restore it. It seems that chrome can't be used.

Clear website cookies
Copy code The code is as follows:
javascript:(function(){C=document.cookie.split("; ");for(d="." location.host;d;d=("" d).substr(1).match(/ ..*$/))for(sl=0;sl<2; sl)for(p="/" location.pathname;p;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()}})()

Clear the cookies of the website, Chrome cannot use it.

Developer Tools

Reload CSS
Copy Code The 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));

Let the web page continuously reload CSS.

Spry Media
Copy code The 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/design/media/js/design-loader.js');

A very powerful tool. Contains: grid, ruler, unit measurements, crosshairs. It is recommended that web designers try it.

Layout Grid
Copy code The 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='100%');void(myDiv.style.height ='100%');void(myDiv.style.top='0');void(myDiv.style.left='0');void(myBody.appendChild(myDiv));

Generate beautiful meshes.

Print Screen
Copy code The code is as follows:
javascript :window.location='http://aviary.com/' location.href;

Another recommended tool. Capture the current webpage and automatically enter aviary.com to edit the image.

Download as PDF
Copy code The code is as follows:
javascript:void(window.open('http://www.pdfdownload.org/web2pdf/Default.aspx?left=0&right=0&top=0&bottom=0&page=0&cURL=' document.location.href));

Store web pages as pdf files.

One more thing, Spry Media is really easy to use.

Occasionally, due to slow network speed, it may not work properly. Others have been tested and the results are 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 (you cannot click reload later)
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template