Last active
March 24, 2019 18:13
-
-
Save jpgninja/9df2ee4c244f80fa38cd56d5aa26545a to your computer and use it in GitHub Desktop.
Bookmarklets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!function() { | |
function init() { | |
var photoUrl; | |
// Amazon | |
// photoUrl = jQuery('.imageViewContainer img')[0].src; // User review image. | |
photoUrl = jQuery('#ivLargeImage img')[0].src; // Product image. | |
openPhotoInNewTab( photoUrl ); | |
} | |
function openPhotoInNewTab( url ) { | |
window.open( url, "_blank" ) | |
} | |
if ("undefined" == typeof jQuery) { | |
var t = document.createElement("script"), | |
a = document.getElementsByTagName("head")[0]; | |
t.src = "//code.jquery.com/jquery.min.js", | |
t.onload = t.onreadystatechange = function() { | |
init() | |
}, | |
a.appendChild(t); | |
} | |
else { | |
init(); | |
} | |
}(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!function() { | |
function init() { | |
var photoUrl; | |
// Flickr | |
// photoUrl = $('._jjzlb img')[0].src.split('?')[0]; | |
openPhotoInNewTab( photoUrl ); | |
} | |
function openPhotoInNewTab( url ) { | |
window.open( url, "_blank" ) | |
} | |
if ("undefined" == typeof jQuery) { | |
var t = document.createElement("script"), | |
a = document.getElementsByTagName("head")[0]; | |
t.src = "//code.jquery.com/jquery.min.js", | |
t.onload = t.onreadystatechange = function() { | |
init() | |
}, | |
a.appendChild(t); | |
} | |
else { | |
init(); | |
} | |
}(); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!function() { | |
function init() { | |
let photoUrl = document.getElementsByClassName('FFVAD')[0].src; | |
openPhotoInNewTab( photoUrl ); | |
} | |
function openPhotoInNewTab( url ) { | |
window.open( url, "_blank" ) | |
} | |
init(); | |
}(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment