Jump to content

How to delete whole "@media print { ...}" CSS instructions?


pstein
 Share

Recommended Posts

Oftentimes web pages include a separate *.css file and have additional special CSS instructions inside for printing the article.
 
How can I delete with CSS-important! or JavaScript this
 
@media print {  ............. }
 
rule / instruction?
 
Peter
Link to comment
Share on other sites

Obviously this doesn't work since I have NO Access to the original CSS files.
I am not the owner of the webserver.

I want to change the loaded webpage AFTER loading by scripts with Firefox AddOns like Greasemonkey or Firemonkey.
This work fine for many CSS statements.

So again: Is there a way to delete

@media print { .... }

statements AFTER loading?

Link to comment
Share on other sites

I looked and looked and looked, i can't see anything that would make it that obvious, web page has css, well yes, most do, some have special instructions for printing article, yes some do? Oh wait! I forgot to use my extra powers of perception that the website was not yours and therefore you had "NO ACCESS" to make these changes, OH wait!... I DON'T HAVE THESE powers, so obviously NOT obvious.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...