Discussions » Development

How to @include data:image base64 pages

Posted: 2015-11-02

How to @include data:image base64 pages

I have a script to disable the grainy background on top level media pages (e.g., those URL's ending in .png etc.). I am trying to get it to run on data:image URL's, i.e., when base64 encoded images are opened in a tab (e.g. this one: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA/0lEQVQ4ja2SPU4DMRBG5wRwlUA4AMXWWXGEFOEeLrZ3mypNpFBCwU+bIgoF0kpBQorkKKuVnMIFvatHgRcFsDeLgqVXjOabb2Zsi/znAR6B9wM8tRnsiqK4FpHLGEqpEbBLFd8DtYictgx5AtTAQ8ygBqoOa1ah0a/EBth0MPiuA24BC6wDFy3F/T2dBe4kBG97bMM6Maof2rUAK2CV5/lVlmV5E3dFgDJgAuVfEODlGAR4PgZxzs2ABbCw1k6NMWNJ/ERjzNhaO230zrkbEZEz+fymQ2CptR6knlFrPQCWSqlhMD3/SnrvJ8A8XM5rghKYe+8nsQa91OgRek3RBwkzFls9QXBjAAAAAElFTkSuQmCC ), but nothing that I have tried in the script (e.g. // @include data:* ) seems to work.

Any help would be appreciated.

Posted: 2015-11-05


It seems supports for 'data' scheme has been removed since version 1.11 due to security issue (#1767).

Posted: 2015-11-06

Seems like there is no way to run scripts on data pages.
Thanks for your response.

Post reply

Sign in to post a reply.