Chromium and CSS

Post Reply
Nicenice54
Posts: 1
Joined: Sat May 16, 2020 12:30 am

Chromium and CSS

Post by Nicenice54 » Sat May 16, 2020 4:48 pm

Hello,

With Chromium I need to deactivate all css for all websites. you know a tip ? :)

Thank you

User avatar
salvadordf
Posts: 2337
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Chromium and CSS

Post by salvadordf » Sat May 16, 2020 5:12 pm

Hi,

I've never done that and I don't recall any switch, property or anything to do that easily but you can try several things :
  • Use the TChromium.OnResourceResponse event to stop downloading any CSS file. Check the response.MimeType parameter.
  • Execute some JavaScript code to delete or disable all <style> elements.
  • Try the suggestions in this page : https://superuser.com/questions/447269/is-there-any-way-to-view-a-webpage-without-styles-in-chrome

Post Reply