RedditEnhancer icon indicating copy to clipboard operation
RedditEnhancer copied to clipboard

(BUG)Auto Show Formatting Options when commenting does not worked again

Open dnet890 opened this issue 11 months ago • 1 comments

I know it have been solved in the past (https://github.com/joelacus/RedditEnhancer/issues/85). But, it looks like the auto formatting tools does not worked again. Is this related to new API policy change? https://www.reddit.com/r/redditdev/comments/1j2sgxw/please_ensure_your_useragents_are_unique_and/?sort=new Image

dnet890 avatar Mar 06 '25 10:03 dnet890

RE does not use Reddit APIs for the Auto Show Formatting Options When Commenting feature, rather it injects JavaScript into the page to tell the browser to click the Show formatting options button when it loads (see auto_show_comment_formatting_options.js). We have to adapt our modification each time Reddit does wonders to their website, but API changes have nothing to do with this.

Reddit has now moved all reply comment boxes shreddit-composer inside DocumentFragment, which means that we no longer are able to emulate click events on the button as the composers are not attached to the DOM, and thus the feature no longer works.

I'll see what @joelacus thinks of it, but likely we'll have to drop this feature.

bmndc avatar Mar 06 '25 11:03 bmndc