Viewer Easily

Easy viewer with this script

  1. // ==UserScript==
  2. // @name Viewer Easily
  3. // @namespace http://tampermonkey.net/
  4. // @description Easy viewer with this script
  5. // @version 1.2
  6. // @author STRAGON
  7. // @license N/A
  8. // @match *://gartic.io/*
  9. // @match *://*/*?__cpo=aHR0cHM6Ly9nYXJ0aWMuaW8
  10. // @icon https://static.cdnlogo.com/logos/s/96/st.svg
  11. // @grant GM_setValue
  12. // @grant GM_getValue
  13. // @grant GM_addValueChangeListener
  14. // @grant GM_addStyle
  15. // @namespace *
  16. // ==/UserScript==
  17.  
  18. var panel = document.createElement("div");
  19. panel.style.position = "fixed";
  20. panel.style.top = "20px";
  21. panel.style.right = "20px";
  22. panel.style.width = "260px";
  23. panel.style.height = "30px";
  24. panel.style.backgroundColor = "#000";
  25. panel.style.borderRadius = "10px";
  26. panel.style.padding = "8px";
  27. panel.style.zIndex = "1000";
  28. panel.style.textAlign = "center";
  29. panel.style.border = "2px solid red";
  30.  
  31. var linkInput = document.createElement("input");
  32. linkInput.type = "text";
  33. linkInput.placeholder = "Enter link ...";
  34. linkInput.style.width = "70%";
  35. linkInput.style.borderRadius = "5px";
  36. panel.appendChild(linkInput);
  37.  
  38.  
  39. var btn1 = document.createElement("button");
  40. btn1.style.backgroundColor = "#FF0000";
  41. btn1.style.color = "#fff";
  42. btn1.style.border = "none";
  43. btn1.style.padding = "7px 0px";
  44. btn1.style.borderRadius = "5px";
  45. btn1.style.cursor = "pointer";
  46. btn1.textContent = "Viewer";
  47. btn1.style.width = "25%";
  48. btn1.style.marginLeft = "5px";
  49.  
  50.  
  51. panel.appendChild(btn1);
  52.  
  53. btn1.addEventListener("click", function() {
  54. var link = linkInput.value;
  55. var newlink = link+"/viewer";
  56. window.open(newlink, '_blank');
  57. });
  58.  
  59.  
  60. let html=`
  61.  
  62.  
  63. `
  64.  
  65. document.body.appendChild(panel);

QingJ © 2025

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