bijij / ViewImage

Extension to re-implement the "View Image" and "Search by image" buttons into google images.
MIT License
780 stars 106 forks source link

“View image” button not visible in Firefox #257

Closed Myvh closed 6 months ago

Myvh commented 2 years ago

The “View image” button is not there. I already tried to restart the browser and to reinstall the extension.

I use Windows 10 64 bits, and Firefox is updated (version 101.0.1).

bijij commented 2 years ago

Hi there, can you tell me what version of the extension you're using, and if possible if any errors were logged in your console related to the extension when you tried looking for the view image button?

Myvh commented 2 years ago

I’m using version 3.6.5 of the extension. Here is Firefox’s console output after having clicked on a image in the search results:

Content Security Policy: Couldn’t process unknown directive ‘require-trusted-types-for’
Content Security Policy: Ignoring “'unsafe-inline'” within script-src or style-src: nonce-source or hash-source specified
Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). 2 sandbox eval code:15:50
Some cookies are misusing the recommended “SameSite“ attribute 11
AVERTISSEMENT ! m=_b,_tp,_r:1080:253
En utilisant cette console, vous vous exposez au risque que des personnes malveillantes usurpent votre identité et volent vos informations par le biais d'une attaque appelée Self-XSS.
Ne saisissez pas et ne copiez pas du code que vous ne comprenez pas. m=_b,_tp,_r:1080:253
MouseEvent.mozPressure is deprecated. Use PointerEvent.pressure instead. m=_b,_tp,_r:1449
Content Security Policy: Ignoring “'unsafe-inline'” within script-src or style-src: nonce-source or hash-source specified 6
Content Security Policy: Couldn’t process unknown directive ‘require-trusted-types-for’
Content Security Policy: Ignoring ‘x-frame-options’ because of ‘frame-ancestors’ directive.
Content Security Policy: Ignoring “'unsafe-inline'” within script-src or style-src: nonce-source or hash-source specified 2
Content Security Policy: Couldn’t process unknown directive ‘require-trusted-types-for’
Some cookies are misusing the recommended “SameSite“ attribute 2
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at data:text/plain;base64,Cg==. (Reason: CORS request not http).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://play.google.com/log?format=json&hasfast=true&authuser=0. (Reason: CORS request did not succeed). Status code: (null).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at data:text/plain;base64,Cg==. (Reason: CORS request not http).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://play.google.com/log?format=json&hasfast=true&authuser=0. (Reason: CORS request did not succeed). Status code: (null).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at data:text/plain;base64,Cg==. (Reason: CORS request not http).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://play.google.com/log?format=json&hasfast=true&authuser=0. (Reason: CORS request did not succeed). Status code: (null).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at data:text/plain;base64,Cg==. (Reason: CORS request not http).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://play.google.com/log?format=json&hasfast=true&authuser=0. (Reason: CORS request did not succeed). Status code: (null).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at data:text/plain;base64,Cg==. (Reason: CORS request not http).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://play.google.com/log?format=json&hasfast=true&authuser=0. (Reason: CORS request did not succeed). Status code: (null).
Content Security Policy: Ignoring “'unsafe-inline'” within script-src or style-src: nonce-source or hash-source specified 5
Content Security Policy: Ignoring “'unsafe-inline'” within script-src or style-src: nonce-source or hash-source specified
Content Security Policy: Couldn’t process unknown directive ‘require-trusted-types-for’
Content Security Policy: Ignoring ‘x-frame-options’ because of ‘frame-ancestors’ directive.
Content Security Policy: Ignoring “'unsafe-inline'” within script-src or style-src: nonce-source or hash-source specified 2
Content Security Policy: Couldn’t process unknown directive ‘require-trusted-types-for’
Content Security Policy: Ignoring “'unsafe-inline'” within script-src or style-src: nonce-source or hash-source specified
Content Security Policy: Couldn’t process unknown directive ‘require-trusted-types-for’
Some cookies are misusing the recommended “SameSite“ attribute 6
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at data:text/plain;base64,Cg==. (Reason: CORS request not http).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://play.google.com/log?format=json&hasfast=true&authuser=0. (Reason: CORS request did not succeed). Status code: (null).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at data:text/plain;base64,Cg==. (Reason: CORS request not http).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://play.google.com/log?format=json&hasfast=true&authuser=0. (Reason: CORS request did not succeed). Status code: (null).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at data:text/plain;base64,Cg==. (Reason: CORS request not http).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://play.google.com/log?format=json&hasfast=true&authuser=0. (Reason: CORS request did not succeed). Status code: (null).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at data:text/plain;base64,Cg==. (Reason: CORS request not http).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://play.google.com/log?format=json&hasfast=true&authuser=0. (Reason: CORS request did not succeed). Status code: (null).
ner00 commented 2 years ago

There have been reports in another issue about interference with other extensions, namely uBlock Origins. Maybe be unrelated, but you could try disabling every extension and only leave View Image on, then if it works start enabling them a handful at a time and see when it breaks.

Myvh commented 2 years ago

I disabled all extensions except View Image, restarted Firefox, and the bug was still here.

DanAlexson90 commented 1 year ago

Can confirm, there is "Search by Image" but no "View Image".

Atexor commented 7 months ago

Hi, I will refresh this thread. View Image also does not work for me. After debugging code I found that problem (not sure if only) is in function:

function parseDataSource(array) {
    var meta = array[31][0][12][2];
    //...
}

We can still obtain valid data via start_search and end_search and convert it to JSON which is argument array for that function, but the desired array is empty. The valid image is somewhere here for me: arr[56][1][0][0][1][0][images_indexes][0][0]["randomobjectpropertynumber"][1][3][0];

I can parse that data, but I cannot determine how can I specify now that selected image is my image. There are many values with "0", "false" etc. Any ideas? Example json result