How to Emulate CSS media type PRINT in JS?

Hello,
In Chrome developers tool (Ctrl + Shift + i), we can access to the option set: Rendering. In this set, there is one to switch the current web page to 3 kind of rendering, Emulate CSS media type:

  • No emulation
  • Print
  • Screen
  1. Is there a Javascript way to switch the current web page CSS rendering between: NO EMULATION and PRINT, like this Chrome option?

  2. If not, is there any Chrome Extension to do this?

  3. If not, what is the quickest way to access this Chrome option?

Thank you and happy coding.
Javascript prefered than jQuery.
CONFIG: Windows 10 Home 64b. Intel Core i7-8565U

20220328

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.