Greasy Fork

Greasy Fork is available in English.

Text

2023/9/20 21:55:23

目前为 2023-09-20 提交的版本,查看 最新版本

// ==UserScript==
// @name        Text
// @namespace   https://github.com/jin-lin0/tampermonkey-demo
// @match       *://*/*
// @grant       none
// @version     0.2
// @author      -
// @description 2023/9/20 21:55:23
// @license MIT
// ==/UserScript==

(function () {
  "use strict";
  console.log("tamper test");
  const greetingMessage =
    "欢迎!打开该页面的时间:" + new Date().toLocaleTimeString();
  const greetingElement = document.createElement("div");
  greetingElement.textContent = greetingMessage;
  greetingElement.style.position = "fixed";
  greetingElement.style.top = "0";
  greetingElement.style.left = "0";
  greetingElement.style.backgroundColor = "lightblue";
  greetingElement.style.padding = "5px";
  document.body.appendChild(greetingElement);
})();