QUOTE(dongmian @ Jan 12 2023, 21:18)

太牛逼了大佬。您修完了我这也正常了。
第一个at是原脚本115行
CODE
//If you haven't read the latest post, highlight the thread
if (!/Ignore/.test(tr.children[5].textContent) && ((!storage.latestRead[threadNumber] || storage.latestRead[threadNumber] < tr.threadDate) && !userId.test(tr.children[4].getElementsByTagName('a')[0].href))){
if (!/auction/i.test(tr.children[1].textContent))
atLeastOneHighlighted = true;
[].forEach.call(tr.children, function(td){
td.style.backgroundColor = unreadColor;
第三个是99行。
CODE
trs.forEach(function(tr){
第四个是282行
CODE
cleanContent();
第五个是384行
CODE
done(r.response);
呃...怎么说呢,是这个的锅。
QUOTE(OnceForAll @ Jan 11 2023, 11:37)

CODE
localStorage.improvedControlPanel = "{}"
应该是这个 (IMG:[
invalid]
style_emoticons/default/duck.gif) 刷新再试试
正确的方式是使用脚本开头的注释:
CODE
//If forum timezone settings are changed, uncomment the next line and reload the page once
//localStorage.improvedControlPanel = ''; alert('localStorage cleared'); return;
也就是控制台执行
CODE
localStorage.improvedControlPanel = ''
这是因为这里:
CODE
if (!localStorage.improvedControlPanel){
getTimeZone();
return;
}
这一步
没有JSON.parse你执行OnceForAll的这一句之后,localStorage.improvedControlPanel是
非空字符串"{}"而不是反序列化出来的
空对象{}
因此你这么清空之后不会触发这个脚本的初始化。
因此我推断你重装了脚本。如果你是更新的,还会报这个错。
This post has been edited by tsXor: Jan 13 2023, 04:41