ViewImage icon indicating copy to clipboard operation
ViewImage copied to clipboard

“View image” button not visible in Firefox

Open Myvh opened this issue 2 years ago • 4 comments

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).

Myvh avatar Jun 17 '22 15:06 Myvh

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?

bijij avatar Jun 22 '22 15:06 bijij

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).

Myvh avatar Jun 24 '22 12:06 Myvh

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.

ner00 avatar Jun 24 '22 17:06 ner00

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

Myvh avatar Jul 02 '22 06:07 Myvh

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

DanAlexson90 avatar Oct 28 '22 02:10 DanAlexson90

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

Atexor avatar Jan 28 '24 14:01 Atexor