Jump to content

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

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?
Link to post
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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...