NickGPT

Use NickGPT on Google Search page!

目前為 2023-04-21 提交的版本,檢視 最新版本

// ==UserScript==
// @name         NickGPT
// @namespace    https://ugpt.nickname4th.vip/
// @version      0.1
// @description  Use NickGPT on Google Search page!
// @author       InJeCTrL
// @match        *://www.google.com/search*
// @match        *://www.google.com.hk/search*
// @match        *://www.google.co.uk/search*
// @grant        GM_addStyle
// @icon         https://s1.ax1x.com/2023/04/21/p9E40Ve.png
// @run-at       document-end
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    GM_addStyle("\
#nickgpt-wnd {\
border: 1px solid #cceff5;\
position: fixed;\
right: 10%;\
top: 50%;\
width: 30%;\
height: 80%;\
transform: translate(0, -50%);\
z-index: 999;\
}\
");

    function answer(){
        document.getElementById('nickgpt-wnd')
            .contentWindow.postMessage({
            "nickGPT": document.getElementById('APjFqb').textContent}, '*');
    }

    var ifr = document.createElement("iframe");
    ifr.id = "nickgpt-wnd";
    ifr.src = "https://ugpt.nickname4th.vip";
    document.body.appendChild(ifr);

    window.setTimeout(answer, 3000);
})();

QingJ © 2025

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