gpt-hacker-news-extension

所属分类:GPT/ChatGPT
开发工具:JavaScript
文件大小:16KB
下载次数:0
上传日期:2022-12-07 00:01:13
上 传 者sh-1993
说明:  一个完整的、可工作的黑客新闻扩展,用于突出黑客新闻线程上的新评论,完全由ChatGPT生成
(A complete, working Hacker News Extension to highlight new comments on a Hacker News Thread, completely generated by ChatGPT ,)

文件列表:
LICENSE (1068, 2022-12-07)
content-script.js (1443, 2022-12-07)
gpt-output (36315, 2022-12-07)
icon.png (7527, 2022-12-07)
manifest.json (333, 2022-12-07)
popup.html (211, 2022-12-07)

# Hacker News Extension This is a browser extension for Chrome that can be used to highlight new comments on [Hacker News](https://news.ycombinator.com) threads. The extension will only be enabled on Hacker News, and will keep track of which comments the user has already seen. When the user navigates to the same comment thread twice, comments that weren't visible on the page the last time the user looked at the thread will be highlighted. ## How it works The extension uses a content script to modify the DOM of the page, adding a highlight to any comments that were posted after the user's last visit to the thread. The timestamp of the user's last visit is stored in local storage, using the thread's ID as the key. ## How it was created This extension was created using [ChatGPT](https://beta.openai.com/docs/chat-gpt), a large language model trained by OpenAI. The code was entirely generated by ChatGPT, and the only human intervention besides applying the changes and sharing GPT output was one suggestion to use the `title` attribute of the `.age` selector instead of the `datetime` or `title` attribute of the `.age a` selector. The `manifest.json` file included in this repository was created by ChatGPT, but it resulted in an error when attempting to load the extension in Chrome. The human operator fixed the error by changing the `manifest_version` to 2, which allowed the extension to be loaded in development mode. All commits to this repository contain the human prompt text verbatim in the commit message, and the ChatGPT-provided output from each prompt was appended to a log file named `gpt-output`.

近期下载者

相关文件


收藏者