Text

2023/9/20 21:55:23

目前為 2023-09-20 提交的版本,檢視 最新版本

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

(function () {
  "use strict";
  const notificationOptions = {
    text: "欢迎",
    title: "自定义通知",
    timeout: 5000, //
  };

  GM_notification(notificationOptions);
  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.color = "black";
  greetingElement.style.padding = "5px";
  document.body.appendChild(greetingElement);
})();

QingJ © 2025

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