Skip to content

Commit

Permalink
Ignore thumbnails from gstatic.com (bijij#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
keombre authored and bijij committed Mar 10, 2018
1 parent 77bc4d4 commit 68fabb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/content-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function addLinks(node) {
var imageText = object.querySelector('._cjj > .irc_it > .irc_hd > ._r3');

// Retrive the image;
var image = object.querySelector('img[alt^="Image result"][src].irc_mut, img[src].irc_mi');
var image = object.querySelector('img[alt^="Image result"][src]:not([src^="https://encrypted-tbn"]).irc_mut, img[src].irc_mi');

// Override url for images using base64 embeds
if (image === null || image.src === '' || image.src.startsWith('data')) {
Expand Down

0 comments on commit 68fabb9

Please sign in to comment.