Source Viewer

View Page Source of any Website.

当前为 2020-10-30 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @version 6.7.1.9
  3. // @name Source Viewer
  4. // @name:de Seitenquelltext anzeiger
  5. // @description View Page Source of any Website.
  6. // @description:de Schauen Sie sich den Seitenquelltext von jeder beliebigen Website an.
  7. // @author wack.3gp
  8. // @copyright 2019+ , wack.3gp (https://gf.qytechs.cn/users/4792)
  9. // @grant unsafeWindow
  10. // @noframes
  11. // @include *
  12. // @license CC BY-NC-ND 4.0; http://creativecommons.org/licenses/by-nc-nd/4.0/
  13. // @namespace https://gf.qytechs.cn/users/4792
  14. // @supportURL https://gf.qytechs.cn/scripts/4611/feedback
  15. // @compatible Chrome tested with Tampermonkey
  16. // ==/UserScript==
  17.  
  18. unsafeWindow.viewsource = function () {
  19. window.location = "view-source:" + window.location.href;
  20. };
  21. // ==============
  22.  
  23. var body = document.body;
  24. if (body !== null) {
  25. var div = document.createElement("div");
  26. div.setAttribute('id', 'viewsource');
  27. div.innerHTML = "<center><button onclick='javascript:viewsource()'>Click to view source!</button></center>";
  28. body.appendChild(div);
  29. document.getElementById("viewsource").style = "position: fixed;right: 0;left: 0;bottom: 0px;margin: auto;";
  30. }
  31. // ==============

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址