Skip to content

Commit

Permalink
研发需要消耗个人时间精力,欢迎各位赞赏、鼓励
Browse files Browse the repository at this point in the history
  • Loading branch information
xcanwin authored May 19, 2023
1 parent 1b6a392 commit 482c88b
Showing 1 changed file with 27 additions and 5 deletions.
32 changes: 27 additions & 5 deletions KeepChatGPT.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name KeepChatGPT
// @description 这是一个ChatGPT的畅聊与增强插件。开源免费。不仅能解决所有报错不再刷新,还有保持活跃、取消审计、克隆对话、净化首页、展示大屏、展示全屏、言无不尽、拦截跟踪、日新月异等多个高级功能。让我们的AI体验无比顺畅、丝滑、高效、简洁。解决的报错如下: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com. (3) Conversation not found. (4) This content may violate our content policy.
// @version 13.6
// @version 13.7
// @author xcanwin
// @namespace https://github.com/xcanwin/KeepChatGPT/
// @supportURL https://github.com/xcanwin/KeepChatGPT/
Expand Down Expand Up @@ -234,7 +234,7 @@
<div class="fixed inset-0 bg-gray-500/90"></div>
<div class="fixed inset-0 overflow-y-auto z-50">
<div class="flex items-end justify-center min-h-full p-4 sm:items-center sm:p-0 text-center">
<div class="bg-white dark:bg-gray-900 rounded-lg sm:max-w-lg sm:p-6 text-left">
<div class="kdialogwin bg-white dark:bg-gray-900 rounded-lg sm:max-w-lg sm:p-6 text-left">
<div class="flex items-center justify-between">
<div>
<div class="flex items-center justify-between">
Expand All @@ -253,10 +253,14 @@
</div>
</div>
`;
if (inputtype !== 'br') {
$(".kdialoginput", ndivalert).value = inputvalue;
} else {
if (inputtype === 'br') {
$(".kdialoginput", ndivalert).parentElement.style.display = 'none';
} else if (inputtype === 'img') {
$(".kdialoginput", ndivalert).src = inputvalue;
$(".kdialoginput", ndivalert).style = `max-height: 300px; height: unset; display: block; margin: 0 auto;`;
$(".kdialogwin", ndivalert).style = `max-width: 600px;`;
}else {
$(".kdialoginput", ndivalert).value = inputvalue;
}
$(".kdialogclose", ndivalert).onclick = function() {
ndivalert.remove();
Expand Down Expand Up @@ -289,6 +293,7 @@
<li id=nmenuid_it>${tl("拦截跟踪")}</li>
<li id=nmenuid_ec>${tl("日新月异")}</li>
<li id=nmenuid_cu>${tl("检查更新")}</li>
<li id=nmenuid_ap>${tl("赞赏鼓励")}</li>
<li id=nmenuid_ab>${tl("关于")}</li>
</ul>
`;
Expand Down Expand Up @@ -438,6 +443,19 @@
checkForUpdates();
};

$('#nmenuid_ap').onclick = function() {
ndialog(`${tl("赞赏鼓励")}`, `· 本项目没有研发经费,但是功能研发、升级、BUG修复都会消耗很多个人时间、精力,并且有不少技术研究成本。<br>
<br>· 如果你体验完本项目以后眉开眼笑,觉得好用!NB!神器!好顺畅!感觉很棒!NICE!
<br>· 如果你觉得本项目打开了你进入AI世界的高速通道
<br>· 如果你希望作者的小猫吃到更好的猫粮、猫罐头
<br>· 如果本项目对你有帮助
<br>· 如果本项目提高了你工作效率
<br>· 如果你希望本项目持续维护、升级更多的功能
<br>· 如果你希望鼓励、激励作者投入更多的时间精力提升项目,欢迎各位支持和鼓励本项目`, `更多鼓励方式`, function(t) {
window.open(`${GM_info.script.namespace}#赞赏`, '_blank');
}, `img`, `https://github.com/xcanwin/KeepChatGPT/raw/main/assets/appreciate_wechat.png`);
};

$('#nmenuid_ab').onclick = function() {
window.open(GM_info.script.namespace, '_blank');
};
Expand Down Expand Up @@ -723,6 +741,10 @@ nav {
font-size: 12px;
line-height: 1;
}

#nmenuid_ap {
color: #00bf78;
}
`);
};

Expand Down

0 comments on commit 482c88b

Please sign in to comment.