Skip to content

Instantly share code, notes, and snippets.

@notacouch
Created February 6, 2015 17:21
Show Gist options
  • Save notacouch/69bf0145eeb661608b69 to your computer and use it in GitHub Desktop.
Save notacouch/69bf0145eeb661608b69 to your computer and use it in GitHub Desktop.
Swap NSLIJ news images with another for testing purposes
var whyioughta = window.prompt('Please insert image URL. Plz.', 'ache tt pee, or File, or ...');
jQuery('#feature_info + a img.img-responsive, #secondary_features img.img-responsive, body.node-type-article div.article-image figure img.img-responsive').attr('src', whyioughta);
// bookmarkletify here:
// @link http://mrcoles.com/bookmarklet/
@notacouch
Copy link
Author

Copy the below and create a bookmarklet out of it:

javascript:(function()%7Bvar%20whyioughta%20%3D%20window.prompt('Please%20insert%20image%20URL.%20Plz.'%2C%20'ache%20tt%20pee%2C%20or%20File%2C%20or%20...')%3BjQuery('%23feature_info%20%2B%20a%20img.img-responsive%2C%20%23secondary_features%20img.img-responsive%2C%20body.node-type-article%20div.article-image%20figure%20img.img-responsive').attr('src'%2C%20whyioughta)%7D)()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment