/** * @author https://codepen.io/bookmarklets * @file Image Combo Tool
One tool will reverse image search in Bing, Tineye or Google as well as extract EXIF data * Original Source {@link https://cdpn.io/bookmarklets/fullpage/NobJbq#} */ javascript: if(document.getElementById('mymenu')) { document.getElementById('mymenu').remove(); }else{ function hideMenu() { document.getElementById('mymenu').remove(); } var url=location.href; var ext = url.split('.').pop(); if(ext.includes('jpg' || 'png' || 'gif' || 'jpeg') !==true) { alert('Selected URL does not have an image extension (PNG|JPG|JPGE|GIF).\nOpen the image you want to search in its own window.\Attempting anyway...'); } var block_to_insert ; var container_block ; var goog = ' Google Reverse Image Search'; var bing = ' Bing Reverse Image Search'; var exif = 'EXIF Data Extraction   ① '; var jeff =''; var tineye = ' Tineye Reverse Image Search'; var karma= ' KarmaDecay Reddit Image Search'; function information(){alert('This tool is designed to work on a single image.\nONE IMAGE PER PAGE!\nOpen just one image at a time in a new tab.')}; var info = ''; var I = document.getElementsByTagName('IMG')[0]; var sizer='Image size is: ' + I.naturalWidth+ 'px wide x ' +I.naturalHeight + 'px high\nFileType: ' + fileType + '\nSource: ' + I.src; var res = url.split('?'); var extArray = ext.split('?'); var fileType = (extArray[0]); var exifDataQuery=(res[0]); var exifDataCom='
'; block_to_insert = document.createElement('div'); block_to_insert.id = 'mymenu'; block_to_insert.innerHTML = '   ×     Image Operations:
1.) '+ goog+ ' 
2.) ' + bing + ' 
3.) ' + tineye + ' 
4.) ' + karma + ' 
5.) ' + exif + '   ' + exifDataCom + '   ' + jeff +' 
6.) Size of Image   ' + info + '
'; container_block = document.getElementsByTagName('body')[0]; container_block.appendChild(block_to_insert); mymenu.setAttribute('style', 'margin-left:auto; margin-right:auto; height:170px; width:25%; background-color:#FFFF00; border-radius:25px; border:2px solid #ff0000; color:black; float:left; font-family:arial,sans,verdana; font-size:20px; z-index:10000; display: inline-block;line-height:unset!important; line-height:1!important; overflow:visible; box-shadow: 1px 1px #000; position:fixed; top: 0; padding:2px 5px;');mymenu.setAttribute('tabindex', '0');mymenu.setAttribute('onBlur', 'hideMenu()'); };