Disable Disqus URL Tracking

Remove the http[s]://disq.us/url?url= Disqus added in 2016-12

目前為 2017-03-19 提交的版本,檢視 最新版本

作者
Luke Breuer
評價
0 0 0
版本
0.32
建立日期
2016-12-20
更新日期
2017-03-19
尺寸
1.8 KB
授權條款
未知
腳本執行於

Works on:

  • comments loaded in the initial chunk (for me: 50 comments)
  • comments loaded by the "Load more comments" button
  • comments loaded via opening a new page with a #comment- bookmark (sometimes, some initial # of comments will be loaded, then a few more will be loaded related to the bookmark)

Doesn't work on:

  • edited comments
  • comments loaded via a change in bookmark (i.e. #comment-) which doesn't cause a complete page refresh

Probably doesn't work on:

  • comments loaded via "view new reply" or whatever it is
  • newly posted comments

There are probably ways to fix at least some of the above, requiring more effort and a Disqus sandbox. What I'm wary of is constantly polling the # of comments via something like $("#conversation li.post").length; that seems like it might make things sluggish and drain battery. So, as far as I can see, to add functionality I would need:

  • a Disqus sandbox somewhere
  • a way to monitor bookmark (#comment-) changes in the parent of the Disqus iframe

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址