Greasy Fork is available in English.
Use NickGPT on Google Search page!
当前为
// ==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);
})();