我也叫ChatGPT给写了个回复脚本,不过这次能用

四级用户 ma_er233 2023-2-8 1887

(反复试了4次后……)

我给的要求:

Write a Tampermonkey script for https://bbs.oldmanemu.net/. This is a forum based on Xiuno BBS. In the comment section of all posts, it should add a button by the side of the id="submit" button so that when I click it, the script will automatically send a reply saying "Sent by ChatGPT."

(我完全不懂js、网页这块,但我感觉是我最后加的 id="submit" button 叫它管事了……之前我以为修罗论坛既然是开源,说不定也在用来训练的资料里,但看来我是想多了?)

(另外我总感觉这玩意对中文提问适配的差点,可能是训练的材料有限?而且有时候问中文还会冒出来英文回答)


它的回复:

Here's a Tampermonkey script that should do what you're asking for:

// ==UserScript==
// @name         Oldmanemu BBS Enhancer
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Add a button for auto-reply on Oldmanemu BBS
// @author       You
// @match        https://bbs.oldmanemu.net/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    const replyButton = document.createElement("button");
    replyButton.innerText = "Auto-Reply";
    replyButton.style.marginLeft = "10px";

    const submitButton = document.querySelector("#submit");
    submitButton.parentNode.insertBefore(replyButton, submitButton.nextSibling);

    replyButton.addEventListener("click", function() {
        const textarea = document.querySelector("textarea");
        textarea.value = "Sent by ChatGPT.";
    });
})();

This script uses the Tampermonkey API to add a button by the side of the "submit" button, and sets an event listener for that button so that when it's clicked, it will automatically fill the textarea with the message "Sent by ChatGPT."


效果:

屏幕截图 2023-02-08 150349.png

(手贱多点了几下,发出好几条,也没法删……还请老爱放过我?)


上一篇:小雅挂了(悲)
下一篇:吸血鬼幸存者太上头了
最新回复 (11)
  • 四级用户 lilacfifibo 2023-2-8
    0 2
    看来还得用英文问才有用
  • 五级用户 yifeng7 2023-2-8
    0 3
    lilacfifibo 看来还得用英文问才有用
    正宗美国人 ☺
  • 五级用户 wenbin5243 2023-2-8
    0 4
    连间距都帮你弄好
  • 五级用户 一条大辉狼 2023-2-8
    0 5

    自动回复机,我N年前上大学的时候就写过~那时候和别人比赛灌水...

    微信图片_20230208153056.png

  • 管理员 Oldman 2023-2-8
    1 6
    是时候加入验证码了?
  • 三级用户 Fox_lnc 2023-2-8
    0 7
    Oldman 是时候加入验证码了?
    哈哈哈哈哈哈哈哈哈
  • 五级用户 panndora 2023-2-8
    0 8
    不牢靠
  • 四级用户 sakurachan 2023-2-8
    0 9
    我认为它用的训练材料是来自于stackoverflow等公共社区,而不是开源代码。
  • 三级用户 老顽童 2023-2-8
    0 10
    发布没多久就挂了。
  • 四级用户 ma_er233 2023-2-8
    0 11

    有可能?

    ChatGPT和GPT-3.5的数据集反正OpenAI没具体说……

    GPT-3说了用了Common Crawl之类[1],不知道那里面爬的数据包不包括GitHub仓库

    OpenAI的另一个产品Codex是用了Github之类的地方的开源代码[2],不过也不知道它和GPT啥关系

    [1]GPT-3的维基上有表格,来源https://arxiv.org/abs/2005.14165

    [2]Evaluating Large Language Models Trained on Code - 3.1. Data Collection https://arxiv.org/abs/2107.03374

  • 四级用户 麻仓叶 2023-2-9
    0 12
    Oldman 是时候加入验证码了?
    赶紧加,我们人类不能输给机器人!消灭机器人暴政,世界属于人类!
    • 老男人游戏网配套论坛
      13
        立即登录 立即注册
发新帖
本论坛禁止发布SWITCH和PS4相关资源,若有其他侵权内容,请致邮3360342659#qq.com(#替换成@)删除。