Last active
December 3, 2015 07:50
-
-
Save mort3za/ae3212294a7b47e58219 to your computer and use it in GitHub Desktop.
This file contains 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
// fix for showing images in dabr.co.uk | |
var linkembeds = $('.embed a'); | |
for(var i = 0; i < linkembeds.length; i++){ | |
var link = $(linkembeds[i]); | |
var linkToImage = link.attr('href').replace('large', 'small'); | |
var imgInLink = link.find('img'); | |
imgInLink.attr('src', linkToImage); | |
} | |
// use this extension: https://chrome.google.com/webstore/detail/custom-javascript-for-web/poakhlngfciodnhlhhgnaaelnpjljija | |
// Enable jQuery in extension |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment