Inject Games Link

Injects a link to games.com on a specific page

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Inject Games Link
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Injects a link to games.com on a specific page
// @author       Your Name
// @match        *://*/*  // Change this to the specific website you want to target
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Create a container for the injected HTML
    const container = document.createElement('div');
    container.style.position = 'fixed';
    container.style.top = '20%';
    container.style.left = '50%';
    container.style.transform = 'translate(-50%, -50%)';
    container.style.padding = '20px';
    container.style.backgroundColor = 'white';
    container.style.border = '1px solid black';
    container.style.zIndex = '9999';
    container.style.textAlign = 'center';
    container.style.fontFamily = 'Arial, sans-serif';

    // Add HTML content to the container
    container.innerHTML = `
        <h1>Welcome to Games</h1>
        <p>Click the link below to visit Games.com:</p>
        <a href="https://www.games.com" target="_blank" style="text-decoration: none; color: blue; font-size: 24px;">Go to Games.com</a>
    `;

    // Append the container to the body
    document.body.appendChild(container);
})();