Inject Games Link

Injects a link to games.com on a specific page

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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);
})();