Source Viewer

View the HTML source code of any online web page. (use the Tampermonkey Command Menu)

安装此脚本
作者推荐脚本

您可能也喜欢Remover

安装此脚本
  1. // ==UserScript==
  2. // @version 6.7.3.9
  3. // @name Source Viewer
  4. // @name:de Seitenquelltext anzeigen
  5. // @description View the HTML source code of any online web page. (use the Tampermonkey Command Menu)
  6. // @description:de Schauen Sie sich den Seitenquelltext von jeder beliebigen Website an.
  7. // @author JAS1998
  8. // @copyright 2019+ , JAS1998 (https://gf.qytechs.cn/users/4792)
  9. // @namespace https://gf.qytechs.cn/users/4792
  10. // @supportURL https://gf.qytechs.cn/scripts/4611/feedback
  11. // @license CC BY-NC-ND 4.0; http://creativecommons.org/licenses/by-nc-nd/4.0/
  12. // @noframes
  13. // @compatible Chrome tested with Tampermonkey
  14. // @contributionURL https://www.paypal.com/donate?hosted_button_id=9JEGCDFJJHWU8
  15. // @contributionAmount €1.00
  16. // @grant GM_registerMenuCommand
  17. // @grant GM_notification
  18. // @match *://*/*
  19. // ==/UserScript==
  20. /* jshint esversion: 9 */
  21. GM_registerMenuCommand("Donate now 🎁", function () {
  22. alert("Hello, I'm JAS1998\nand i wrote this script as a hobby\nYou have been using this script for some time, if you find it useful, i would appreciate a small donation! =)");
  23. window.location="https://www.paypal.com/donate?hosted_button_id=9JEGCDFJJHWU8";
  24. });
  25. GM_registerMenuCommand("view-source:" + window.location, function () {
  26. if (GM_info.script.copyright.includes(GM_info.script.namespace)) {
  27. var source = "<html>";
  28. source += document.getElementsByTagName('html')[0].innerHTML;
  29. source += "</html>";
  30. source = source.replace(/</g, "&lt;").replace(/>/g, "&gt;");
  31. source = "<pre>" + source + "</pre>";
  32. var sourceWindow = window.open();
  33. sourceWindow.document.write(source);
  34. sourceWindow.document.close();
  35. if (window.focus) sourceWindow.focus();
  36. }
  37. else {
  38. alert("Please install the Orginal Version");
  39. location.href = GM_info.script.supportURL.replace("feedback", "");
  40. }
  41. });
  42. // ==============

QingJ © 2025

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