ChatGPT on all sites (lite)

Adds an overlay element with embedded iframe to all websites

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

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

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

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

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

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

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         ChatGPT on all sites (lite)
// @namespace    http://your-namespace.com/
// @version      1.0
// @description  Adds an overlay element with embedded iframe to all websites
// @match        http://*/*
// @match        https://*/*
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    // Check if the script is already running or if the iframe element exists
    if (window.top !== window.self || document.getElementById('overlay-iframe')) {
        return;
    }

    // Create the div element
    var divElement = document.createElement('div');
    divElement.style.position = 'fixed';
    divElement.style.top = '0';
    divElement.style.left = '0';
    divElement.style.width = '100vw';
    divElement.style.height = '100vh';
    divElement.style.zIndex = '9999';

    // Create the iframe element
    var iframeElement = document.createElement('iframe');
    iframeElement.id = 'overlay-iframe';
    iframeElement.src = 'https://ora.ai/embed/afadccc6-ee2c-4508-bc58-eb25c3099ade';
    iframeElement.width = '17%';
    iframeElement.height = '40%';
    iframeElement.style.border = '0';
    iframeElement.style.borderRadius = '4px';

    // Append the iframe element to the div element
    divElement.appendChild(iframeElement);

    // Insert the div element at the top of the document body
    document.body.insertBefore(divElement, document.body.firstChild);
})();
// It's funny because sex