Automatically expand truncated comments and replies without clicking "read more"
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 :)
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 ?
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();
}
Thanks a lot for all and for your amazing script ;-)
No problem :D
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