- Mar 22, 2013
- 9,143
- 10,489
So I use this extension on Firefox called Stylus which basically allows me to add CSS to override any site's native CSS. I use it to hide unnecessary things on various sites I visit often. Makes my life easier.
But now I ran into a site where I wanted to hide something, and this site, I swear to god, has no ID and no Class on almost any element. All of their HTML is this shit:
It's all just "div style" "div style" "div style". They just create the div and jump straight into style. There's no ID, no Class, no Title, no Name, no nothing!
So now, how do I override CSS on a site like this? I have no identifier to point my CSS to.
I wonder if maybe there's a Firefox extension or method to where I can "change" the HTML of a page. Then I can use that extension to edit the HTML and add an ID or Class to the codes I want, and then use Stylus to hide the shit.
Anyway, any ideas?
But now I ran into a site where I wanted to hide something, and this site, I swear to god, has no ID and no Class on almost any element. All of their HTML is this shit:
HTML:
<div style="margin:0px auto;border-bottom:1px solid #d9bcbc;text-align:center;padding-bottom:9px;background:#fdfbf1;height:42px;line-height:53px;margin-bottom:0px;">
<span style="color:#874c17"><div style="border-radius:30px;background:#ffba00;height:14px;width:14px;display:inline-block;position:relative;top:2px;margin-right:6px;border:1px solid #eca934;"></div>Some text whatever.</span></div>
It's all just "div style" "div style" "div style". They just create the div and jump straight into style. There's no ID, no Class, no Title, no Name, no nothing!
So now, how do I override CSS on a site like this? I have no identifier to point my CSS to.
I wonder if maybe there's a Firefox extension or method to where I can "change" the HTML of a page. Then I can use that extension to edit the HTML and add an ID or Class to the codes I want, and then use Stylus to hide the shit.
Anyway, any ideas?