Qunix | woensdag 28 oktober 2009 @ 21:52 |
Hier mijn verzameling:
Youtube downloader (download altijd hoogste kwaliteit indien mogelijk)
1 | javascript:var%20video_id=null;var%20video_hash=null;var%20video_player=document.getElementById('movie_player');if(video_player){var%20flash_variables=video_player.attributes.getNamedItem('flashvars');if(flash_variables){var%20flash_values=flash_variables.value;if(flash_values){var%20video_id_match=flash_values.match(/[^a-z]video_id=([^(\&|$)] /);if(video_id_match!=null)video_id=video_id_match[1];var%20video_hash_match=flash_values.match(/[^a-z]t=([^(\&|$)] /);if(video_hash_match!=null)video_hash=video_hash_match[1]}}}if(video_id==null||video_hash==null){var%20args=null;try{args=yt.getConfig('SWF_ARGS')}catch(e){}if(args){video_id=args['video_id'];video_hash=args['t']}}if(video_id!=null&&video_hash!=null){var%20fmt='18';try{if(yt.getConfig('IS_HD_AVAILABLE'))fmt='22'}catch(e){}if(!document.getElementById('download-youtube-video')){var%20yt_mp4_path='http://www.youtube.com/get_video?fmt='+fmt+'&video_id='+video_id+'&t='+video_hash;var%20div_embed=document.getElementById('watch-embed-div');if(div_embed){var%20div_download=document.createElement('div');div_download.innerHTML='%3Cbr%20/%3E%20%3Cspan%20id=\'download-youtube-video\'%3E%20%3Ca%20href=\''+yt_mp4_path+'\'%20onclick=\'blur(this);\'%3EDownload%20as%20MP4%3C/a%3E%3C/span%3E';div_embed.appendChild(div_download);}if(navigator.appName!='Microsoft%20Internet%20Explorer'){document.location.href='http://www.youtube.com/get_video?fmt='+fmt+'&video_id='+video_id+'&t='+video_hash}}}void(0); |
Exif reader
1 | javascript:var%20form=document.createElement("form");form.action="http:"+"//regex"+".info/exif.cgi";form.method="get";form.target="exif";var%20O=document.createElement("input");O.type="hidden";O.name="b";O.value=3;form.appendChild(O);O=document.createElement("input");O.type="hidden";O.name="referer";O.value=document.location;form.appendChild(O);O=null;function%20f1(obj){if(obj.links.length>0){var%20R=/.(jpe?g|nef|raw|tiff)$/i;var%20count=0;var%20url;for(i=0;i<obj.links.length;i++){if(R.test(obj.links[i].href)){count++;url=obj.links[i].href}}if(count==1){var%20O=document.createElement("input");O.type="hidden";O.name="url";O.value=url;return%20O;}}return%20null;}function%20f2(obj){if(obj.images.length==1){var%20O=obj.createElement("input");O.type="hidden";O.name="url";O.value=obj.images[0].src;return%20O;}return%20null;}function%20f3(obj){if(obj.images.length>=1){var%20img;var%20max=0;for(i=0;i<obj.images.length;i++){size=obj.images[i].width*obj.images[i].height;if(size>max){max=size;img=obj.images[i];}}return%20img;}return%20null;}function%20f4(obj){var%20img=f3(obj);if(img){O=obj.createElement("input");O.type="hidden";O.name="url";O.value=img.src;return%20O;}return%20null;}function%20f5(FRAMES){for(var%20fr=0;O==null&&fr<FRAMES.length;fr++){try{var%20O=f1(FRAMES[fr].document);if(O)return%20O;}catch(er){}}var%20max=0;var%20img;for(var%20fr=0;O==null&&fr<FRAMES.length;fr++){try{var%20I=f3(FRAMES.document);if(I&&I.width*I.height>max){img=I;max=I.width*I.height;}}catch(er){}if(img){O=obj.createElement("input");O.type="hidden";O.name="url";O.value=img.src;return%20O;}}return%20null}var%20O=f1(document);if(!O)O=f2(document);if(!O)O=f4(document);if(!O)O=f5(frames);if(O){form.appendChild(O);document.body.appendChild(form);form.submit();}else{alert("Sorry,I%20could%20not%20find%20out%20an%20image%20to%20report%20on");} |
Disable Google Adsence banners
1 | javascript:%20q();function%20q(){document.getElementsByTagName(%20'iframe'%20)[0].style.display%20=%20'none';}; |
Wikipedia search
1 | javascript:s=document.getSelection();for(i=0;i<frames.length;i++){if(s)break;s=frames[i].document.getSelection();}if(!s)void(s=prompt('Enter%20search%20terms%20for%20Wikipedia',''));if(!s=="")wikiw=open('http://en.wikipedia.org/'+(s?'w/wiki.phtml?search='+escape(s):''));wikiw.focus(); |
Hoe werkt het? 1. Maak een nieuwe bookmark aan 2. Kopieer javascript in de bookmark en geeft het een naam 3. Als je nu bv. op een youtube pagina komt en je wilt het filmpje hebben; klik op de bookmark om hem op te slaan

Post hier jouw verzameling javascript bookmarks!
Meer info: http://en.wikipedia.org/wiki/Bookmarklet |
Vilano | woensdag 28 oktober 2009 @ 22:08 |
Goed topic Bij mij staat de youtube download al bij m'n favorieten, is heel handig!  |
ssebass | woensdag 28 oktober 2009 @ 22:39 |
Handig topic. |