- Регистрация
- 19.10.2013
- Сообщения
- 17
- Благодарностей
- 0
- Баллы
- 1
Hey guys,
How can i execute bookmarklet Javascript on browser. I have tried put JS on "Own code Javascript" run on current page & run locally but nothing.
Ex:
Bookmarklet for Storify
OR
Bookmarklet for HackerNews
OR
Bookmarklet for Delicious
Any help is much appreciated...
How can i execute bookmarklet Javascript on browser. I have tried put JS on "Own code Javascript" run on current page & run locally but nothing.
Ex:
Bookmarklet for Storify
Код:
javascript:(function()%7Bvar%20_my_script=document.createElement('SCRIPT');%20_my_script.type='text/javascript';%20_my_script.src='//storify.com/public/js/bookmarklet.js?1.9.1';%20document.getElementsByTagName('head')%5B0%5D.appendChild(_my_script);%7D());
Bookmarklet for HackerNews
Код:
javascript:window.location=%22http://news.ycombinator.com/submitlink?u=%22+encodeURIComponent(document.location)+%22&t=%22+encodeURIComponent(document.title)
Bookmarklet for Delicious
Код:
javascript:(function(e,t){var%20n=e.document;setTimeout(function(){function%20a(e){if(e.data===%22destroy_bookmarklet%22){var%20r=n.getElementById(t);if(r){n.body.removeChild(r);r=null}}}var%20t=%22DELI_bookmarklet_iframe%22,r=n.getElementById(t);if(r){return}var%20i=%22https://delicious.com/save?%22,s=n.createElement(%22iframe%22);s.id=t;s.src=i+%22url=%22+encodeURIComponent(e.location.href)+%22&title=%22+encodeURIComponent(n.title)+%22¬e=%22+encodeURIComponent(%22%22+(e.getSelection?e.getSelection():n.getSelection?n.getSelection():n.selection.createRange().text))+%22&v=1.1%22;s.style.position=%22fixed%22;s.style.top=%220%22;s.style.left=%220%22;s.style.height=%22100%25%22;s.style.width=%22100%25%22;s.style.zIndex=%2216777270%22;s.style.border=%22none%22;s.style.visibility=%22hidden%22;s.onload=function(){this.style.visibility=%22visible%22};n.body.appendChild(s);var%20o=e.addEventListener?%22addEventListener%22:%22attachEvent%22;var%20u=o==%22attachEvent%22?%22onmessage%22:%22message%22;e[o](u,a,false)},1)})(window)