🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

编程随想的博客 - 评论区修复(重制版)

基于原版评论区修复,使用标准 WebAPI 重写,并增加了一点检查和提示。

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

Autor
网课随想
Instalări zilnice
0
Total instalări
124
Rating-uri
1 0 0
Versiune
1.1
Creat
24-10-2023
Actualizat
12-11-2025
Size
2,21 KB
Licență
Unlicense
Se aplică pe

说是重制,实际上是单独写了一个,只是原理和原始版本恰好是相同的。

应友人建议,增加了点提示,并公开发布。


Q: 下面有列出别的可以用的修复,为什么还要编写/发布新的?

A:

早前的原始版本,和今年出现的劫持版本,都写得非常那啥。代码缺乏空值检查就不说了…说点别的:

早年没有 URL API,编程随想就自己实现了个 Url 类来处理链接。

报错的评论区代码,就有用到这个 Url 类。实现这个修复时,绝对会看到。

而这些版本,不用 URL API 就算了,放着页面中的这个 Url 类不用,用处理字符串的方式来处理 URL。

对于在意最基本的代码质量的人来说,与其问为什么要写新的,不如问:为什么仍要用旧的?


所有脚本:

原始版本:

劫持版本(两个的代码是一样的):