Print PDF

Print.

  1. // ==UserScript==
  2. // @name Print PDF
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1.0
  5. // @description Print.
  6. // @author Feng Ya
  7. // @match http://www.imsdb.com/scripts/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. ;(function () {
  12. 'use strict'
  13. // Your code here...
  14. print()
  15.  
  16. function print () {
  17. const script = document.querySelector('pre')
  18. document.body.innerHTML = script.outerHTML
  19. }
  20. })()