painty / CSS-Used-ChromeExt

Get all css rules used by the selected DOM and its children.
https://chrome.google.com/webstore/detail/css-used/cdopjfddjlonogibjahpnmjpoangjfff
MIT License
263 stars 62 forks source link

doesn't seem to like local files (file:///) #28

Closed end-user closed 4 years ago

end-user commented 4 years ago
  1. The url of page inspected.

copy an html file and open it in chrome - of course it needs some on-page css

  1. The element inspected.

any

  1. Expected result.

'css used' should have current, live rules with any non-relevant selectors stripped out

  1. Actual result.

'css used' has no rules available; says select another dom on the left or reopen the devtool.

end-user commented 4 years ago

nevermind - I see that there's a permission setting for the extension to allow access to file urls

MaxwellGriffin commented 3 years ago

I'm still getting this same issue with local files. I have the "Allow access to file URLs" option enabled in the extension settings. I set up a local server with XAMPP and I was then able to use the extension.

amasidlover commented 1 year ago

I also have this issue the console shows: CSS-Used: Fail to get: file:///home/amasidlover/workspace/zymonic-dev/stylesheets/ZymonicDefault.css Even with the 'file urls' permission enabled for the extension.

painty commented 1 year ago

I also have this issue the console shows: CSS-Used: Fail to get: file:///home/amasidlover/workspace/zymonic-dev/stylesheets/ZymonicDefault.css Even with the 'file urls' permission enabled for the extension.

Should have been fixed in the recently released version v3.0.0