Read More

Automatically expand truncated comments and replies without clicking "read more"

< 脚本 Read More 的反馈

评价:好评 - 脚本运行良好

§
发布于:2025-06-29

Hello,

I just discovered your script and it's super :-)

However, the comments are not expanded while disconnected or in incognito mode on Reddit...

Thank you for your answer.

Google Chrome and Mozilla Firefox Browsers with Tampermonkey or Violentmonkey

DaBlower作者
§
发布于:2025-06-30

Hello,

I just discovered your script and it's super :-)

However, the comments are not expanded while disconnected or in incognito mode on Reddit...

Thank you for your answer.

Google Chrome and Mozilla Firefox Browsers with Tampermonkey or Violentmonkey

Thanks for your comment :D. Have you allowed your userscript extension to run in incognito windows? If not, you can allow it at "about:addons" on firefox and "chrome://extensions" on chrome. This script works when the Reddit page you are on gets updated (eg. scrolling down to load more comments), however when you are disconnected, the page doesn't update, which is probably why you are experiencing the first issue.

Thank you :)

§
发布于:2025-06-30

Thanks to your explanations, I disabled Tampermonkey and its Private Mode option then I enabled both again and it works in incognito mode :-)

Okay, I understand for while disconnected.

In addition, I already use for a long time this script for YouTube https://greasyfork.org/scripts/446954-youtube-expand-description-and-long-comments-show-all-the-replies and I just would like to know how to modify your script without errors to disable the YouTube part in order to avoid a conflict between the 2 scripts please ?

DaBlower作者
§
发布于:2025-07-01

Since your other script already expands replies, you can just delete that section from my script using your userscript manager. This is the section:

        // expand truncated comments in youtube
        document.querySelectorAll('tp-yt-paper-button#more').forEach(function(btn){
            const text = btn.innerText.trim().toLowerCase();
            if (
                btn.offsetParent !== null &&
                text.includes('read more')
            ){
                btn.click();
            }
§
发布于:2025-07-01

Thanks a lot for all and for your amazing script ;-)

DaBlower作者
§
发布于:2025-07-02

No problem :D

发布留言

登录以发布留言。