THEME IS CLOSED
> Safari Useful Bookmarks | Increase the convenience of Internet surfing
directorgeneral
Message#1
02.03.15, 17:37
*******
[offline]

Group: Moderators
Messages 1125
Check in: 19.02.13

Reputation:-  0  +

Useful Bookmarks (Bookmarklets) in Safari

Attached Image

Bookmarklet- Bookmark in a browser with a small script that expands user capabilities during an Internet session.

How to add bookmarklet in Safari?
First we bookmark any site:
Attached Image
Attached Image
Attached Image

Then go to the bookmarks and edit the previously created:
Attached Image
Attached Image
Attached Image

Add our bookmarklet java script, rename the bookmark name to any arbitrary
Attached Image

Bookmark created. Now open any page on the Internet.(where we want to use the added java script) ->open bookmarks ->choose the bookmarklet we created
Attached Image
Attached Image

As an example, let's take a look at the work of the bookmarklet.Tap to translate
Attached Image
Attached Image


Examples of bookmarklets
  1. Reload this page
    java script: location.reload ()

  2. Back one page
    java script: window.history.go (-1)


  3. Forward one page
    java script: window.history.go (1)

  4. Remove all images from the page
    java script: (function ()% 7Bfunction% 20toArray% 20 (c)% 7Bvar% 20a,% 20k; a = new% 20Array; for% 20 (k = 0;% 20k% 20% 3C% 20c.length;% 20 ++ k) a% 5Bk% 5D = c% 5Bk% 5D; return% 20a;% 7Dvar% 20images,% 20img,% 20altText; images = toArray (document.images); for% 20 (var% 20i = 0 ;% 20i% 20% 3C% 20images.length;% 20 ++ i)% 7Bimg = images% 5Bi% 5D; altText = document.createTextNode (img.alt); img.parentNode.replaceChild (altText,% 20img)% 7D% 7D) ();

  5. Search by page
    (found text is highlightedyellow)
    java script: void% 28s% 3Dprompt% 28% 27% D0% 98% D1% 81% D0% BA% D0% B0% D1% 82% D1% 8C% 20% D1% 82% D0% B5% D0% BA % D1% 81% D1% 82% 3A% 27% 2C% 27% 27% 29% 29% 3Bs% 3D% 27% 28% 27 + s +% 27% 29% 27% 3Bx% 3Dnew% 20RegExp% 28s% 2C % 27gi% 27% 29% 3Brn% 3DMath.floor% 28Math.random% 28% 29 * 100% 29% 3Brid% 3D% 27z% 27% 20 +% 20rn% 3Bb% 20% 3D% 20document.body.innerHTML% 3Bb% 3Db.replace% 28x% 2C% 27% 3Cspan% 20name% 3D% 27% 20 +% 20rid% 20 +% 20% 27% 20id% 3D% 27% 20 +% 20rid% 20 +% 20% 27% 20style% 3D% 5C% 27color% 3A% 23000% 3Bbackground-color% 3Ayellow% 3B% 20font-weight% 3Abold% 3B% 5C% 27% 3E% 241% 3C / span% 3E% 27% 29% 3Bvoid% 28document. body.innerHTML% 3Db% 29% 3Balert% 28% 27% D0% 9D% D0% B0% D0% B9% D0% B4% D0% B5% D0% BD% D0% BE% 20% 27% 20 +% 20document .getElementsByName% 28rid% 29.length% 20 +% 20% 27% 20% D1% 81% D0% BE% D0% B2% D0% BF% D0% B0% D0% B4% D0% B5% D0% BD% D0% B8% D0% B5 (% D0% B8% D0% B9).% 27% 29% 3Bwindow.scrollTo% 280% 2Cdocument.getElementsByName% 28rid% 29% 5B0% 5D.offsetTop% 29% 3B

  6. Google search
    java script: function f () {var q = prompt ('Search for'); if (q! = null) {location.href = 'http: //google.com/search? q = site:' + location. host + '+' + encodeURIComponent (q);}} f ();

  7. Search in Yandex
    java script: WHAK_com = '' + (window.getSelection? window.getSelection (): document.getSelection? document.getSelection (): document.selection.createRange (). text); WHAK_com = WHAK_com.replace (/% 5Cr% 5Cn% 7C% 5Cr% 7C% 5Cn / g, '% 20,'); if (! WHAK_com) WHAK_com = prompt ('What% 20do% 20you% 20want% 20to% 20search% 20for% 20on% 20Yandex?', ' '); if (WHAK_com! = null) window.open (' http://yandex.ru/yandsearch?text='+escape (WHAK_com) .replace (/% 20 / g, '+') + '& from = www.WHAK.com ('_ newtab'); void (0);

    or
    java script: if (typeof% 20zWYxCJ == typeof% 20alert) zWYxCJ (); var% 20q = escape (window.getSelection ()), i, ii; if (! q)% 7Bfor (i = 0; i% 3Cframes .length; i ++)% 7Bvar% 20fr = frames% 5Bi% 5D; try% 7Bq = escape (fr.getSelection ())% 7Dcatch (e)% 7B% 7D; if (q) break; else% 7Bfor (ii = 0; ii% 3Cfr.frames.length; ii ++)% 7Btry% 7Bq = escape (fr.frames% 5Bii% 5D.getSelection ())% 7Dcatch (e)% 7B% 7D; if (q) break;% 7D% 7D% 7D% 7Dif (! Q) void (q = prompt (% D0% 92% D0% B2% D0% B5% D0% B4% D0% B8% D1% 82% D0% B5% 20% D0% B7 % D0% B0% D0% BF% D1% 80% D0% BE% D1% 81% 20% D0% B4% D0% BB% D1% 8F% 20% D0% BF% D0% BE% D0% B8% D1 % 81% D0% BA% D0% B0% 20% D0% B2% 20Yandex% 3A ',' '))); if (q) void (location.href =' http: //ya.ru/yandsearch? Text = '+ q);

  8. Display all images from page(without text)
    java script: if (typeof% 20ZWYxCJ == typeof% 20alert) '+ document.images% 5Bi7M1bQz% 5D.src +'% 3E% 3Cbr% 3E '% 7D; if (Ai7Mg6P! =' ')% 7Bdocument.write ('% 3Ccenter% 3E '+ Ai7Mg6P +'% 3C / center% 3E '); void (document.close ())% 7Delse% 7Balert ('% D0% 9D% D0% B5% D1% 82% 20% D0% BA% D0% B0% D1% 80% D1% 82% D0% B8% D0% BD% D0% BE% D0% BA! ')% 7D

  9. Display page source
    java script: (function ()% 7Bvar% 20d = window.open ('about: blank'), a = d.document; a.write ('% 3C! DOCTY% 20html% 3E% 3Chtml% 3E% 3Chead% 3E % 3Ctitle% 3ELoading% 20Source% 3C / title% 3E% 3C / head% 3E% 3Cbody% 3E% 3C / body% 3E% 3C / html% 3E '); a.close (); var% 20b = a.body .appendChild (a.createElement ('form')); b.setAttribute ('method', 'post'); b.setAttribute ('action', 'http: //ole.michelsen.dk/viewsource/? uri = '+ location.href); var% 20c = b.appendChild (a.createElement (' input ')); c.setAttribute (' type ',' hidden '); c.setAttribute (' name ',' DOM ') ; c.setAttribute ('value', encodeURIComponent (document.documentElement.innerHTML)); b.submit ()% 7D) ()

    Another option:
    java script: var a = document, b = a.head.innerHTML.trim () + "\ n \ x3c! - [[www.Make-A-Meme.com]] - \ x3e \ n \ x3c! - [[www.SeekFreak.com]] - \ x3e \ n "+ a.body.innerHTML.trim () +" \ n \ x3c! - [[www.ScriptCompress.com]] - \ x3e \ n \ x3c! - [[Visit www.WHAK.com]] - \ x3e ", c = document.createElement (" textarea "); c.style.position =" fixed "; c.id =" WHAK_com "; c.style.width =" 100% "; ca =" soft "; c.autofocus =! 1; c.style.height =" 100% "; c.style.opacity =" 0.85 "; c.style .zIndex = "420"; c.style.top = "0px"; c.style.left = "0px"; c.title = "DOUBLE CLICK TO HIDE"; c.onfocus = function () {WHAK_com.focus ( ); WHAK_com.select ()}; c.value = b; document.ondblclick = d; function d () {a = document.getElementById ("WHAK_com"); a.style.display = "" == a.style .display? "none": ""} a.title = "WHAK.com"; a.body.appendChild (c); void (0);


  10. Russian translation of the page
    Java script: if (typeof% 20zWYxCJ == typeof% 20alert) % 20code% 20to% 20suppress% 20the% 20tooltip% 20with% 20long% 20script '); void (0); void (0); void (0); void (0); void (0); void (0); void (0); q = location.href; void (location.href = 'http: //translate.google.com/translate? U =' + q);

    Java script: (function () {var s = document.createElement ('script'); s.type = 'text / javascript'; s.src = 'http://labs.microsofttranslator.com/bookmarklet/default.aspx ? f = js & to = en '; document.body.insertBefore (s, document.body.firstChild);}) ()

    It is possible to choose translation into other languages ​​on the website.http://labs.microsofttranslator.com/bookmarklet/

  11. Tap to translate. We translate into Russian any word on the page(click on the bookmarklet, select the word, we get the translation)

    java script: (function ()% 7Bif (document.getElementById ('__tr_display)))% 7Breturn;% 7D; window .__ tr_id =' 2cb587c6a090f31c46f2136393e78cba393f7132 '; window .__ tr_lang = a 2cb587c6a090f31c46f2136393e78cba393f7132; iostranslate.appspot.com/js/';var%20__tr_d=document;var%20__tr_s=__tr_d.createElement('script');__tr_s.setAttribute('src',__tr_base+'trns.js?x='+ (Math. random ())); __ tr_s.setAttribute ('type', 'text / javascript'); __ tr_d.body.appendChild (__ tr_s);% 7D) ()

  12. Night mode
    java script: (function () {var night = function (w) {(function (d) {var css = 'html {background: # 333! important} html * {background: none: important; color: #bbb important ; border-color: # 333! important; border-width: 0! important} html a, html a * {color: # 5c8599! important; text-decoration: underline! important} html a: visited, html a: visited * , html a: active, html a: active * {color: # 525f66! important} html a: hover, html a: hover * {color: #cef! important; background: # 023! important} html input, html select, html button, html textarea {background: # 4d4c40! important; border: 1px solid # 5c5a46! important; border-top-color: # 474531! important; border-bottom-color: # 7a7967! important} html input [type = button ], html input [type = submit], html input [type = reset], html input [type = image], html button {border-top-color: # 7a7967! important; border-bottom-color: # 474531! important } html input: focus, html select: focus, html option: focus, html button: focus, html textarea: focus {background: # 5c5b3e! important; color: #fff! important; border-color: # 474100 # 665d00 # 7a7 849! Important; outline: 2px solid # 041d29! Important} html input [type = button]: focus, html input [type = submit]: focus, html input [type = reset]: focus, html input [type = image] : focus, html button: focus {border-color: # 7a7849 # 665d00 # 474100! important} html input [type = radio] {background: none; important; border-color: # 333! important; border-width: 0! important} html img [src], html input [type = image] {opacity: .5} html img [src]: hover, html input [type = image]: hover {opacity: 1} html, html body {scrollbar- base-color: # 4d4c40! important; scrollbar-face-color: # 5c5b3e! important; scrollbar-shadow-color: # 5c5b3e! important; scrollbar-darkshadow-color: # 474531! important; scrollbar-track-color: # 4d4c40 ! important; scrollbar-arrow-color: # 000! important; scrollbar-3dlight-color: # 7a7967! important} '; var s = d.getElementsByTagName (' style '); for (var i = 0, si; si = s [i]; i ++) {if (si.innerHTML == css) {si.parentNode.removeChild (si); return}}; var heads = d.getElementsByTagName ('head'); if (heads.length) { var node = d.createElement ('style'); node.type = 'text / css'; node. appendChild (d.createTextNode (css)); heads [0] .appendChild (node)}} (w.document); for (var i = 0, f; f = w.frames [i]; i ++) {try {arguments.callee (f)} catch (e) {}}}; night (window)}) ();


  13. Increase font on page
    java script: var p = document.getElementsByTagName ('*'); for (i = 0; i<p.length; i ++) {if (p [i] .style.fontSize) {var s = parseInt (p [i] .style.fontSize.replace ("px", ""))}} {var s = 12;} s + = 2; p [i] .style.fontSize = s + "px"}

    If you want the font to increase at once much more, edit this part of the "s + = 2" ->for example in "s + = 5"

    Another option:
    java script: for (i = 0; i% 3Cdocument.getElementsByTagName% 20 ('*'). length; i ++) void (document.getElementsByTagName ('*'% 20)% 5Bi% 5D.style.fontSize = '20pt' );

  14. Reduce the font on the page
    java script: var p = document.getElementsByTagName ('*'); for (i = 0; i<p.length; i ++) {if (p [i] .style.fontSize) {var s = parseInt (p [i] .style.fontSize.replace ("px", ""))}} {var s = 12;} s- = 2; p [i] .style.fontSize = s + "px"}

  15. Custom font size per page- set the size of the text yourself
    Without confirmation to increase the font
    java script: for (i = 0; i% 3Cdocument.getElementsByTagName% 20 ('*'). length; i ++) void (document.getElementsByTagName ('*'% 20)% 5Bi% 5D.style.fontSize = '14pt' );

    or
    Confirmed to increase the font(14pt by default)
    java script: void (f = prompt ('New% 20font% 20size?', '14pt')); for (i = 0; i<document.getElementsByTagName ('*'). length; i ++) void (document.getElementsByTagName ('*') [i] .style.fontSize = f);

    In both examples, the value'14pt'can be changed to any other.

  16. Change font type(on Times New Roman, Arial, etc.)
    • Verdana
      java script: void (document.body.style.fontFamily = 'verdana')

    • Arial
      java script: void (document.body.style.fontFamily = 'arial')

    • Comic sans
      java script: void (document.body.style.fontFamily = 'comic% 20sans% 20ms')

    • Tahoma
      java script: void (document.body.style.fontFamily = 'tahoma')

    • Times new roman
      java script: void (document.body.style.fontFamily = 'times% 20new% 20roman')


  17. Button "Scroll to top" - quickly move to the top of the page
    java script: window.scrollTo (0,0);

  18. Scroll to bottom button - quickly move to the bottom of the page
    java script: dh = document.documentElement.scrollHeight; ch = document.documentElement.clientHeight; if (dh>ch) {moveme = dh-ch; window.scrollTo (0, moveme);}

    or
    java script: window.scrollTo (0, document.documentElement.scrollHeight)

    or
    java script: window.scrollTo (0, Math.max (document.documentElement.scrollHeight, document.body.scrollHeight, document.documentElement.clientHeight))

  19. Display all links on current page.
    java script: var% 20a = ''; for (var% 20ln = 0; ln% 3Cdocument.links.length; ln ++) {var% 20lk = document.links [ln]; a + = ln + ':% 20% 3Ca% 20href = \ '' + lk + '\'% 20title = \ '' + lk.text + '\'% 3E '+ lk +'% 3C / a% 3E% 3Cbr% 3E \ n ';} w = window.open ( '', 'Links', 'scrollbars, resizable, width = 400, height = 600'); w.document.write (a);

  20. View site using Google Mobilizer
    java script: document.location = ’http: //www.google.com/gwt/n? u =’ + document.location

  21. Read the page later using the service Instapaper
    java script: function iprl5 () {var d = document, z = d.createElement ('scr' + 'ipt'), b = d.body; try {if (! b) throw (0); d.title = '(Saving ...)' + d.title; z.setAttribute ('src', 'http: //www.instapaper.com/j/VIbChxExXDOZ? U =' + encodeURIComponent (d.location.href) + ' & t = '+ (new Date (). getTime ()); b.appendChild (z);} catch (e) {alert (' Please wait until the page has been loaded. ');}} iprl5 (); void (0)

  22. View site using Instapaper Mobilizer (link for Safari)
    java script: function% 20iptxt () {var% 20d = document; try {if (! d.body) throw (0); window.location = 'http: //www.instapaper.com/text? u =' + encodeURIComponent (d.location.href);} catch (e) {alert ('Please% 20wait% 20until% 20the% 20page% 20has% 20loaded.');}} iptxt (); void (0)

  23. Send to Kindle
    java script: (% 28function% 28% 29% 7Bwindow.baseUrl% 3D% 27http% 3A // www.www.readability.com% 27% 3Bwindow.readabilityToken% 3D% 27% 27% 3Bvar% 20s% 3Ddocument.createElement% 28% 27script% 27% 29% 3Bs.setAttribute% 28% 27type% 27% 2C% 27text / javascript% 27% 29% 3Bs.setAttribute% 28% 27charset% 27% 2C% 27UTF-8% 27% 29% 3Bs.setAttribute% 28% 27src% 27% 2CbaseUrl% 2B% 27 / bookmarklet / send-to-kindle.js% 27% 29% 3Bdocument.documentElement.appendChild% 28s% 29% 3B% 7D% 29% 28% 29)

  24. Pin to Pinterest. Pin record in Pinterest service
    java script: void ((function (d) {var e = d.createElement ('script'); e.setAttribute ('type', 'text / javascript'); e.setAttribute ('charset', 'UTF-8 '); e.setAttribute (' src ',' // assets.pinterest.com/js/pinmarklet.js?r = '+ Math.random () * 99999999); d.body.appendChild (e)}) ( document))

  25. Add to Pocket
    Java script: (function () {ISRIL_H = '11f7'; PKT_D = 'getpocket.com'; ISRIL_SCRIPT = document.createElement ('SCRIPT'); ISRIL_SCRIPT.type = 'text / javascript'; ISRIL_SCRIPT.src = 'http: // '+ PKT_D +' / b / r.js'; document.getElementsByTagName ('head') [0] .appendChild (ISRIL_SCRIPT)}) ();

  26. Tweet
    java script: location.href = 'http: //twitter.com/share? url =' + encodeURIComponent (window.location.href) + '& text =' + encodeURIComponent (document.title)

  27. Share on Tumblr
    java script: location.href = 'http: //www.tumblr.com/share? v = 3 & u =' + encodeURIComponent (window.location.href) + '& t =' + encodeURIComponent (document.title)

  28. Share page on Google+
    java script: location.href = 'https: //plus.google.com/share? ur \ l =' + encodeURIComponent (window.location.href)

  29. Share on facebook
    java script: var d = document, f = 'http: //www.facebook.com/share',l=d.location,e=encodeURIComponent,p='.php? src = bm & v = 4 & i = 1271771052 & u =' + e (l.href) + '& t =' + e (d.title); 1; try {if (! / ^ (. * \.)? facebook \. [^.] * $ /. test (l. host)) throw (0); share_internal_bookmarklet (p)} catch (z) {a = function () {if (! window.open (f + 'r' + p, 'sharer', 'toolbar = 0, status = 0 , resizable = 1, width = 626, height = 436 ')) l.href = f + p}; if (/Firefox/.test (navigator.userAgent)) setTimeout (a, 0); else {a ()} } void (0)

  30. Save to Evernote
    java script: (function () {EN_CLIP_HOST = 'http: //www.evernote.com'; try {var x = document.createElement ('SCRIPT'); x.type = 'text / javascript'; x.src = EN_CLIP_HOST + '/ public / bookmarkClipper.js?' + (New Date (). GetTime () / 100000); document.getElementsByTagName ('head') [0] .appendChild (x);} catch (e) {location.href = EN_CLIP_HOST + '/ clip.action? Url =' + encodeURIComponent (location.href) + '& title =' + encodeURIComponent (document.title);}}) ();

  31. Digg
    java script: location.href = 'http: //digg.com/submit? phase = 3 & url =' + encodeURIComponent (location.href) + '& title =' + encodeURIComponent (document.title)

  32. What technologies and software packages were used to create the current site
    java script: void (window.open ('http://builtwith.com/?'+location.host));

  33. Search Google Images
    java script: Qr = prompt ('Search% 20Google% 20Images% 20for', ''); if (Qr) location.href = 'http: //images.google.com/images? hl = en & q =' + escape ( Qr)

  34. Make the page easy to read.(Reading mode on any page)
    java script: (function ()% 7BreadConvertLinksToFootnotes = false; readstyle = 'style-ebook'; readSize = 'size-medium'; readMargin = 'margin-x-narrow'; _ readability_script = document.createElement ('script'); _ readability_script .type = 'text / javascript'; _readability_script.src = 'http: //www.web2pdfconvert.com/readable/js/readability.js? x =' + (Math.random ()); document.documentElement.appendChild ( _readability_script); _readability_css = document.createElement ('link'); _readability_css.rel = 'stylesheet'; _readability_css.href = 'http: //www.web2pdfconvert.com/readable/css/readability.css'; _readability_css.type = 'text / css'; _ readability_css.media =' all '; document.documentElement.appendChild (_readability_css); _ readability_print_css = document.createElement (' link '); _ readability_print_css.rel =' stylesheet '; _ readability_print_css.href =' http_css.rel = 'stylesheet'; _ readability_print_css.href = 'http_css.rel =' stylesheet '; _ readability_print_css.href =' http_css.rel = 'stylesheet'; _ readability_print_css.href = "http: /www.web2pdfconvert.com/readable/css/readability-print.css';_readability_print_css.media='print';_readability_print_css.type='text/css';document.getElementsByTagName('head')%5B0%5D.appendChild (_rea dability_print_css); window.setTimeout (function ()% 20% 7B% 20% 20% 20% 20_ext_script% 20 =% 20document.createElement ('script');% 20% 20% 20% 20_ext_script.type% 20 =% 20 'text / javascript';% 20% 20% 20% 20_ext_script.src% 20 =% 20'http: //www.web2pdfconvert.com/readable/js/readability-ext.js? x = '% 20 +% 20 (Math.random ());% 20% 20% 20% 20document.documentElement.appendChild (_ext_script);% 7D,% 201000;% 7D) ();

    You can customize a different page display style. You can do it on the sitehttp://www.web2pdfconvert.com/readable.aspx

    Another option through the ReadAbility service:
    java script: (% 28function% 28% 29% 7Bwindow.baseUrl% 3D% 27http% 3A // www.readability.com% 27% 3Bwindow.readabilityToken% 3D% 27% 27% 3Bvar s% 3Ddocument.createElement% 28% 27script % 27% 29% 3Bs.setAttribute% 28% 27type% 27% 2C% 27text / javascript% 27% 29% 3Bs.setAttribute% 28% 27charset% 27% 2C% 27UTF-8% 27% 29% 3Bs.setAttribute% 28 % 27src% 27% 2CbaseUrl% 2B% 27 / bookmarklet / read.js% 27% 29% 3Bdocument.documentElement.appendChild% 28s% 29% 3B% 7D% 29% 28% 29)

  35. Save page to PDF
    Attention! PDF file will open in a new window!
    java script: void (window.open ('http://www.web2pdfconvert.com/convert.aspx?cURL='+escape (location.href)))

    or
    java script: pdf_url = location.href; location.href = 'http: //pdfmyurl.com? url =' + escape (pdf_url)

  36. Bookmark Google
    java script: location.href = 'http: //www.google.com/bookmarks/mark? op = edit & output = popup & bkmk =' + encodeURIComponent (window.location.href) + '& title =' + encodeURIComponent (document.title)

  37. Shorten the link through the service Goo ∙ gl
    java script: var% 20uri = window.location.href; xhr = new% 20XMLHttpRequest (); xhr.open ('POST', 'https: //www.googleapis.com/urlshortener/v1/url'false); xhr.setRequestHeader ('Content-Type', 'application / json'); xhr.send (JSON.stringify ({longUrl: uri})); var% 20json = xhr.responseText; var% 20obj = JSON.parse (json ); alert (obj.id);

  38. Shorten link via Bit.ly service
    java script: (function ()% 20% 7B% 20var% 20s% 20 =% 20document.createElement (% 22script% 22);% 20s.setAttribute (% 22id% 22,% 20% 22bitmark_js% 22);% 20s. setAttribute (% 22type% 22,% 20% 22text / javascript% 22);% 20s.setAttribute (% 22src% 22,% 20% 22 // bitly.com / a / bitmarklet.js% 22);% 20 (top .document.body% 20% 7C% 7C% 20top.document.getElementsByTagName (% 22head% 22) [0]). appendChild (s);% 20% 7D) ();

  39. View current page in Google Web Cache
    java script: location.href = 'http: //webcache.googleusercontent.com/search? q = cache:' + window.location.href

  40. Show password on the page under the asterisks
    Attached Image
    java script: (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: \ n \ n" + s); else alert ("There are no passwords in forms on this page.");};) ();

  41. Display the URL of the current page as a QR code
    java script: location.href = 'http: //chart.apis.google.com/chart? cht = qr & chs = 300x250 & chl =' + encodeURIComponent (location.href)

  42. Check the site for the presence of incorrect "broken" links
    java script: (function () {% 20window.open ('http://validator.w3.org/checklink?uri='+encodeURIComponent (location.href) +' & hide_type = all & depth = & check = Check ')})) ( );

  43. View information about the visited site through the WhoIs service
    java script: (function () {window.open ('http://whois.sc/' + escape (window.location));}) ();

  44. Replace the text on the page with your own
    java script: (function (a, b, c) {for (a = document.body.innerHTML, c = prompt ("Word / phrase to replace?", "WHAK.com"), b = prompt ("Replace with ? "," Make-A-Meme.com "); a.indexOf (c)>= 0;) a = a.replace (c, b); document.body.innerHTML = a}) ();

    First, in the field, enter which word to find for replacement, in the second window, enter what you need to change the found text

  45. Open previous page in new window
    java script: dOc7rB3 = document.referrer.toString (); if ((dOc7rB3! = '') && (dOc7rB3.indexOf ('java script: //') == - 1)) {void (window.open (document .referrer, 'prevPage'))} else {alert ('No previous page.')}

  46. Bookmark inside a page
    Description:
    These bookmarklets allow you to bookmark the page itself - namely, in the place where you read the text. It will be useful to those users who read a large document on the page and periodically have to be distracted.
    1. Bookmarklet to remember a reading place
    java script: void (InPageBookmark = pageYOffset)

    2. Bookmarklet to return to the place of reading (after scrolling)
    java script: if (typeof InPageBookmark == 'undefined') {alert ('No-in-page bookmark. Use Set In-Page Bookmark tool. (bookmarklets.com)')} else {scrollBy (0, InPageBookmark-pageYOffset)}

    Note: Bookmarklet works only when the page is open. If you update it or switch to another one and then come back, the script will not work!

  47. Show robots.txt file of the visited site(useful for developers)
    java script: void (location.href = 'http: //' + location.host + '/robots.txt')

  48. Open all spoilers onsavagemessiahzine.com
    java script: (function (t) {for (i in t) t [i] .className = 'post-block spoil open';}) (document.querySelectorAll ('. post-block.spoil.close'))

  49. Collapse all spoilers bysavagemessiahzine.com
    java script: (function (t) {for (i in t) t [i] .className = 'post-block spoil close';}) (document.querySelectorAll ('. post-block.spoil.open'))

  50. Download music VKontakte
    java script: var s = document.createElement ('script'); s.src = 'http: //vkontaktemp3.ru/myscripts/audio.js? nc =' + Math.random (); document.body.appendChild ( s); void (0);

    Works in applications with built-in loader (Downloads, Puffin web browseretc.). You need to go to vk.com (full version of the site, not mobile!) And then use the code bookmarklet.
    • Example of loading using the programDownloads:
      • We visited the site (full version) - then we went to our audio recordings.
        Attached Image
      • Pasted the script into the address bar and pressed the enter button (Enter). You can also add the above script to bookmarks for quick access.
        Attached Image
      • There are buttons "Download". Click on the "Download" button next to the song that we want to download to the device:
        Attached Image
      • In the pop-up window that appears, click on the "Download" button
        Attached Image

    • Example of loading using the programPuffin web browser:
      • We visited the site (full version) - then we went to our audio recordings.
        Attached Image

      • Pasted the script into the address bar and pressed the enter button (Enter). You can also add the above script to bookmarks for quick access.
        Attached Image

      • When playing (or moving the cursor), the "Download" button will appear next to the song. Click on it:
        Attached Image

      • In the pop-up window that appears, choose where you want to save the downloaded song:
        Attached Image


    Of course, this option is not the most convenient, so for downloading music from VKontakte I recommend using such third-party applications asLazyTool 2 (+ equalizer and VC)orMusic VKontakte Ultimate

Attention! Onsavagemessiahzine.comthere is an autochange: the word javascript is automatically divided into a java script. Therefore, copying the code from here, connect it yourself!
Otherwise, your bookmarklet will not work!

Attached Image


Post has been editeddirectorgeneral - 16.03.16, 14:11
Filislav
Message#2
05.03.17, 13:27
In Apple iTrust :)
*********
[offline]

Group: Moderators
Messages 5594
Check in: 20.05.09
Apple iPhone X

Reputation:-  636  +

M
Topic is closed


Post has been editedFilislav - 05.03.17, 13:27


--------------------
iPhone X 64Gb (iOS 12.3.1) + iPhone SE 32Gb (iOS 12.3.1) + iPad Pro 9.7 32Gb Wi-Fi + Cellular (iOS 12.3.1) + Apple Pencil + AppleTV4 32Gb (tvOS 12.3) + Apple Watch Series1 42mm (watchOS 5.2) + Apple AirPods
MacBook Pro Retina 13.3 "2015 macOS Mojave 10.14.4



 mobile version    Now: 05/27/19, 02:24