devunt / make-gis-great-again

This web extension adds back "View Image" button to Google Image Search results.
MIT License
768 stars 54 forks source link

Neither userscript or extension work anymore #78

Closed GuyInDogSuit closed 6 years ago

GuyInDogSuit commented 6 years ago

-I tried both the extension and the script. -It does not work on ANY Google Image Search result. -Error persists regardless of which version I use. -Link to example page: https://www.google.com/search?sa=G&hl=en&q=gorillaz+gorillaz+album+cover&tbm=isch&tbs=simg:CAQSlwEJaBjozYfv8WkaiwELEKjU2AQaBAgVCAQMCxCwjKcIGmIKYAgDEijAEvoDnAKwAvwDyAatCp4CuxLHBtcmiTOqIdIm6TyBM4AzijPqPK4mGjA5uLIX5mrpnkqI5SjuAzhRKLr-8aex8d057_1Qf_1RObcqH4zvoezDfQg_1BeyOs9PmUgBAwLEI6u_1ggaCgoICAESBHCwrW8M&ved=0ahUKEwjj1Nrd0ejaAhUH0lMKHR-ICtUQ2A4IJygB&biw=1920&bih=900#imgrc=arvpscqacf05bM: -Screenshots attached. screenshot 1 screenshot 2

ghost commented 6 years ago

I can confirm that. Same problem affects me.

alexchandel commented 6 years ago

Can confirm. Google has broken "View Image" again: screen shot 2018-05-03 at 1 18 52 pm

the3ye commented 6 years ago

Same here. Script on Safari

raszpl commented 6 years ago

Ok, I fixed it on a second try ;-), replace those lines inside addButton(node) function :

//      let thumbnail = document.querySelector('img[id="' + container.dataset.itemId + '"]');
//      let meta = thumbnail.closest('.rg_bx').querySelector('.rg_meta');

//      let metadata = JSON.parse(meta.innerHTML);
//      let src = metadata.ou;
      let thumbnail = node.querySelector('.irc_rimask.irc_rist');
      let src = unescape(thumbnail.querySelector('.rg_l').href.match(/imgurl=([^&]+)/)[1]);

Cant be bothered with official way of sending patches (forking repo etc)

GuyInDogSuit commented 6 years ago

How do I do that?

raszpl commented 6 years ago

install https://addons.mozilla.org/en-US/firefox/addon/tampermonkey/, use raw script in tempermonkey instead of separate extension. Thats how I use it.

p1r473 commented 6 years ago

Use this one instead https://chrome.google.com/webstore/detail/view-image/jpcmhcelnjdmblfmjabdeclccemkghjk/related?hl=en

GuyInDogSuit commented 6 years ago

That one works! Thanks!


"We are all searching for someone whose demons play well with ours."

On Sat, May 5, 2018 at 2:48 PM, p1r473 notifications@github.com wrote:

Use this one instead https://chrome.google.com/webstore/detail/view-image/ jpcmhcelnjdmblfmjabdeclccemkghjk/related?hl=en

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/devunt/make-gis-great-again/issues/78#issuecomment-386837425, or mute the thread https://github.com/notifications/unsubscribe-auth/AM1k00sCMOpxMPsAwqgSbcm6M8M25dp9ks5tvh4xgaJpZM4Twdr3 .

raszpl commented 6 years ago

not according to the reviews :)

ThatLurker commented 6 years ago

Userscript works fine for me on chrome 66.0.3359.139

jhult commented 6 years ago

The Chrome extension does not currently work (see all the comments on the store page).

However, pulling in the latest gis-vib.user.js updates (from 4 days ago) made the extension work (using this how-to). . @dev-id, you need to update the Chrome extension.

raszpl commented 6 years ago

Thank you Dave/@dev-id for doing the leg work and submitting my patch. @jhult dev-id is not the owner of this repo, he cant update chrome extension. devunt is the owner. I suspect he is either waiting to see if it doesnt change again, or submitted change and it wasnt updated yet in google store - Im talking out of my ass here, I have no experience with Google store/extension bureaucracy ;) Either way my patch is still working fine.

onmyouji commented 6 years ago

@raszpl What browser do you use? Seems like it's not working on the latest Chrome (Version 66.0.3359.181)

jhult commented 6 years ago

@onmyouji, the Chrome extension does not currently work. I am using Chrome Version 66.0.3359.170.

There are only 2 options:

  1. Wait until @devunt updates the Chrome extension
  2. Create a local unpacked version of the extension and manually update gis-vib.user.js
carbolymer commented 6 years ago

The current master as of 21.05.2018 works as an unpacked extension.

@devunt When can we expect release to the google web store?

devunt commented 6 years ago

Fixed version of the extension is released on both Chrome Web Store and Firefox Add-ons. Sorry for the delay!

raszpl commented 6 years ago

thank you devunt for absolutely life saving extension!