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

Using relative URLs #31

Closed tibezh closed 1 year ago

tibezh commented 4 years ago
  1. The url of page inspected.

Any page where CSS includes fonts, images, etc. For example https://www.drupal.org/

  1. The element inspected.

ul li.expanded

  1. Expected result.
ul li.expanded{
  list-style-image:url(/misc/menu-expanded.png);
  list-style-type:circle;
}
  1. Actual result.
ul li.expanded{
  list-style-image:url(https://www.drupal.org/misc/menu-expanded.png);
  list-style-type:circle;
}

As a variant, we can have an option like "Use relative paths only" or smth like this.

painty commented 3 years ago

An option page with option to preserve relative url has been implemented in v2.5.0 a8f1938ef3a9525da5684f9e20c74dcba36f1f47 You can right click the extension icon (or the 3 dots menu if the icon is not pined) in the top right toolbar of chrome. and select option , and uncheck the only option called "Convert url to absolute path in css rules."