Skip to content

Commit

Permalink
Fix imageText CSS class (#152)
Browse files Browse the repository at this point in the history
* Add extra method to find images

Primarily visible when trying to find larger ones (larger than 20MP for example)

* Also apply new method for cases where image === null

* Use single quotes to pass tests

* Fix imageText CSS class
  • Loading branch information
qsniyg authored and bijij committed Aug 16, 2018
1 parent 280f0e7 commit 3e59a75
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/content-script.js
Expand Up @@ -41,6 +41,8 @@ function addLinks(node) {
var imageText = object.querySelector('._cjj > .irc_it > .irc_hd > ._r3');
if (!imageText)
imageText = object.querySelector('.Qc8zh > .irc_it > .irc_hd > .rn92ee');
if (!imageText)
imageText = object.querySelector('.Qc8zh > .irc_it > .irc_hd > .irc_dsh');


// Retrive the image;
Expand Down

0 comments on commit 3e59a75

Please sign in to comment.