ankit / stylebot

Change the appearance of the web instantly
https://stylebot.dev/
MIT License
1.41k stars 208 forks source link

Fix for iframe css injection #736

Open joshseltzer opened 1 year ago

joshseltzer commented 1 year ago

It seems that CSS was no longer being injected successfully into iframes. I am not sure why it stopped working (seems to have worked at some point in the past), but this solution does away with the old system for handling iframes (though that deprecated code could still be cleaned up), and simply iterates through all iframes found on the page and injects a <style> element for each one.

589290 commented 1 year ago

Does this fix the issue ever since Chrome 108 of user styles not loading upon initial page load? The workaround is to reload the page for the styles to be applied. Hoping this patch obviates the need for the workaround.

joshseltzer commented 1 year ago

Does this fix the issue ever since Chrome 108 of user styles not loading upon initial page load? The workaround is to reload the page for the styles to be applied. Hoping this patch obviates the need for the workaround.

@589290 not sure, I am not able to replicate the issue you're describing on Chrome 108, is there an existing issue?

Thorvarium commented 1 year ago

is this still an issue?

rthomasdesign commented 12 months ago

I'm still experiencing this issue. Chrome Version 116.0.5845.188