🏠 Home 

psjp for sp

set viewport

  1. // ==UserScript==
  2. // @name psjp for sp
  3. // @namespace http://twitter.com/udop_
  4. // @version 0.2.1
  5. // @description set viewport
  6. // @author udop_
  7. // @match http://puzsq.sakura.ne.jp/main/*
  8. // @run-at document-end
  9. // @grant none
  10. // ==/UserScript==
  11. (function() {
  12. 'use strict';
  13. let meta = document.createElement("meta")
  14. meta.name = "viewport"
  15. meta.content = "width=device-width,initial-scale=1.0,minimum-scale=1.0"
  16. document.getElementsByTagName("head")[0].appendChild(meta)
  17. document.body.style.zoom = "100%"
  18. // Your code here...
  19. })();