A free Gold feature
< 脚本Reddit New Comment Highlighting的反馈
It works for me if i change from JQuery to Javascript in the highlight function, like this:
HLN.highlight = function(cutoff) {
var items = document.getElementsByClassName('entry')
Array.from(items).forEach(function(element) {
var time = element.querySelectorAll('time')[0]
var date = new Date(time.getAttribute('datetime')).getTime();
if (date > cutoff) {
element.classList.add('new-comment');
} else {
element.classList.remove('new-comment');
}
});
};
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址
stopped working on FF