Chrome Extension: Show Images Only (No Text) on Page -


is possible write chrome extension shows images on page (hides text), when plugin enabled?

there plugins available hide images. need opposite: page images, , text hidden.

ideally, behavior should restricted location on page (e.g., inside particular div), that's not requirement.

if want hide html tags img then, yes, it's possible , easy do. can using content style overwrites css of target page , hide except images tags.

here how can it:

manifest.json:

{     "name": "test extension",     "version": "0.0.1",     "manifest_version": 2,     "description": "some description",     "icons": {         "16": "images/icon-16.png",         "128": "images/icon-128.png"     },     "default_locale": "en",     "content_scripts": [         {             "matches": [                 "http://*/*",                 "https://*/*"             ],             "css" : [                 "styles/contentstyle.css"             ],             "run_at": "document_end"         }     ] } 

scripts/contentstyle.css

body {     visibility: hidden; }  * img {     visibility: visible; } 

note crx won't show images set background-image through css, img tags.


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -