Reddit - Top Comments Preview (old & new design)

Preview to the top comments on Reddit (+ optional auto-load comments and images, auto-hide sidebar)

< 脚本Reddit - Top Comments Preview (old & new design)的反馈

评价:一般 - 脚本能用,但还有一些问题

AJ
§
发表于:2015-11-20

Hide/show sidebar toggle missing on post page

The sidebar toggle menu item is present when on the subreddit's page, but not upon entering the comments page of a particular post. Furthermore, the option does not persist if toggled on the subreddit page (i.e. hiding the sidebar when on the subreddit page will not prevent it from returning upon entering a post).

I tried using your older script instead (https://gf.qytechs.cn/en/scripts/7307-reddit-hide-sidebar), and the sidebar toggle does appear on the post page, but this script breaks comment loading ("load more comments" never loads additional comments). Both scripts tested with everything else disabled to confirm.

§
发表于:2016-12-21
编辑于:2016-12-21

I finally managed to fix the old script... it's rather crude, because I have no exact explanation for the fix working... but here's how:

  1. open the "manage scripts" thing (basically opening addons tab)
  2. choose "Reddit - Hide Sidebar" settings, then edit script
  3. add parameter true to noConflict call

old/new:

# '$.noConflict();' 
'$.noConflict(true);'

and you're done. Reload the page. Drop the "maintained" version, if that functionality is all you care about (like me).

Check the docs, this allows for two different jquery versions to be loaded at the same time. Seems like that's the case here.

发表回复

登录(不可用)以发表回复。

QingJ © 2025

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