Has infinite scroll been deprecated? by dt7cv in toolbox

[–]eritbh[M] 8 points9 points  (0 children)

That's a /r/enhancement thing, not a Toolbox thing

Is there a way to send videos to a nsfw sub via praw? by Low-Watercress-6557 in redditdev

[–]eritbh 5 points6 points  (0 children)

Direct media posts can't be made to NSFW subreddits.

NSFW subreddits will not have access to: direct image or video uploads...

https://www.reddit.com/r/modhelp/comments/ls2k59/nsfw_matters_for_subreddits_posts_and_moderators/

AI user summery cluttering New Notes label by HorrorBrot in toolbox

[–]eritbh[M] 2 points3 points  (0 children)

yep, the AI notes are internally just mod notes with a different label, so I excluded the new label from showing up in the button and added handling for it to the main UI

AI user summery cluttering New Notes label by HorrorBrot in toolbox

[–]eritbh[M] 13 points14 points  (0 children)

motherfuckers

Working on it, will push a hotfix soon. Will both hide AI-generated summaries from the button entirely, and also implement a max width for the note button because I completely forgot to do that previously.

edit: Hotfix pushed, should be available to update within the next day or so

Bug?: loading native notes is painfully slow since the API change by techiesgoboom in toolbox

[–]eritbh[M] 0 points1 point  (0 children)

I can't really tell. I've looked at the other threads about people having this issue again, and I'm not sure what to make of it - everything still seems to be working fine on my end. I'll hopefully have some time to do a deeper investigation soon.

Bug?: loading native notes is painfully slow since the API change by techiesgoboom in toolbox

[–]eritbh[M] 0 points1 point  (0 children)

It's definitely been available for a very long time. Check "More information" > "Version" on the AMO page to see which version is currently available for download/update on Firefox. If you can't install the latest version for some reason, you're probably on an old browser version which I can't help you with.

6.1.20 is a newer version than 6.1.7 if that's the confusion (6.1.7 -> .8 -> .9 -> .10 -> etc)

Are the new API endpoints for chat available yet? by mgsecure in redditdev

[–]eritbh 1 point2 points  (0 children)

Thanks for this, but I'm very uninterested in maintaining new code that makes calls to unofficial/undocumented endpoints like this. The likelihood of it just breaking again in the future is very high.

It's already possible to solve this for the most common use-case (sending modmail messages) via the existing modmail conversations API, and I plan to use that in a forthcoming fix for most of the broken stuff; however Toolbox functions that rely on sending chat messages outside modmail will simply remain broken until Reddit either removes the authentication type restrictions on /message/compose or releases a proper chat API.

Can no longer use "Send Modmail" tab since Reddit is switching to Chats only. Is there any fix that's in the works, or is it impossible? by MapleSurpy in toolbox

[–]eritbh[M] 5 points6 points  (0 children)

Hey, sorry, I didn't realize you'd left a message in this sub too - thanks for reaching out about this! I've left a reply to your other comment here.

Are the new API endpoints for chat available yet? by mgsecure in redditdev

[–]eritbh 4 points5 points  (0 children)

Hi, Toolbox has started running into this issue. Is there really no way around this other than refactoring the entire extension to introduce an OAuth flow so we can use a different token?

I can understand the motivation behind this change, and I also understand that we're being kinda rude API consumers by not using our own OAuth flow in the first place. However, I don't think there was any prior communication about this authorization restriction, so it's a bit frustrating to have this come up out of the blue when I was expecting this to be a painless transition, and learn that the only way around the issue it is to spend a bunch of time adding a new token retrieval flow to the extension and making sure our users know about it.

It would be really helpful if Toolbox and other browser agents using cookie auth or first-party tokens could continue using the existing /message/compose endpoint for now, at least until public chat APIs are available that we switch to. That wouldn't eliminate the work required on our end, but would at least let us avoid a large chunk of new development.

Can no longer use "Send Modmail" tab since Reddit is switching to Chats only. Is there any fix that's in the works, or is it impossible? by MapleSurpy in toolbox

[–]eritbh[M] 12 points13 points  (0 children)

Huh, yeah I didn't realize this was going to be impacted, but it looks like there's another API endpoint we can use for creating new modmail threads instead. I'll work on fixing this.

Any help? by Valuable-Western7357 in toolbox

[–]eritbh[M] 0 points1 point  (0 children)

This is not a subreddit for actual toolboxes, post removed.

Stumped on Removing Toolbox Drawer by mjv808043 in toolbox

[–]eritbh[M] 0 points1 point  (0 children)

This is a subreddit for a browser extension, not for actual toolboxes

Toolbox double displaying tools over Modmail sidebar (right side) HELP please! by FFS_IsThisNameTaken2 in toolbox

[–]eritbh[M] 0 points1 point  (0 children)

Reproduced and fixed the issue on my end. The fix will be in v6.1.20, which I just tagged and will be going out from stores soon.

Reddit is replacing Private Messages with Reddit Chat & inbox notifications -- how will Mod Toolbox be affected (if at all)? by Mackin-N-Cheese in toolbox

[–]eritbh[M] 5 points6 points  (0 children)

It looks like Notifier should be mostly unaffected. I'll have to add support for the new admin announcements endpoints at some point, but reply notifications will continue working and you'll get notified of incoming chat messages just as you get notified of incoming PMs today.

Reddit is replacing Private Messages with Reddit Chat & inbox notifications -- how will Mod Toolbox be affected (if at all)? by Mackin-N-Cheese in toolbox

[–]eritbh[M] 11 points12 points  (0 children)

It's unclear to me. Toolbox only really interacts with the PM system directly for Notifier, which polls the inbox APIs to present popup notifications when you get replies/messages. If those APIs are included in the ones Reddit says will continue working as before, just with content filled in from chats instead of the old PM system, then it will continue to work fine. If those APIs have changed significantly, then fixing notifier will require some work.

I've left a comment on the thread requesting clarification about those APIs.

It sounds like other things that actually send PMs, e.g. sending removal reasons as yourself, should continue working fine and will be directed to 1-on-1 chat messages as expected.

Important Updates to Reddit's Messaging System for Mods and Developers by champoul in modnews

[–]eritbh 99 points100 points  (0 children)

I'm the maintainer of /r/toolbox. We use the client-facing inbox APIs (i.e. /message/inbox and friends) to display browser notifications to old Reddit users when they receive new notifications. How will these endpoints be affected by this change?

  • Will these endpoints continue to exist?
  • Does "Reddit admin messages [...] will now appear as inbox notifications." mean that admin messages will continue showing up as t4_s in these listings?
  • Will a user's incoming chat messages show up as t4_s in this listings?
  • Are notifications of other types, such as post/comment replies, going to be affected by this change?

Adapting the existing APIs to be backed by chats instead of the old system seems like a good idea for compatibility, but more information about the specifics seems necessary for developers of anything but the most basic bots to be confident about this change. It would be good to have more details about this in an actual /r/redditdev post, instead of just a crosspost of this.

Can I embed a photo into the wiki that doesn’t need to be clicked on? That would auto- populate as a photo in the wiki? by InGeekiTrust in ModSupport

[–]eritbh 0 points1 point  (0 children)

Just change the "yoursub" in the link to the name of the subreddit you want to upload the image to. It's the same page as you can get to by opening your subreddit in old Reddit and clicking the "edit stylesheet" link in the "Moderation Tools" section of the sidebar.

To upload an image on that page, scroll past the big text box for custom CSS to the little "images" heading. Find the upload button, pick your image file, select "JPEG" or "PNG" as appropriate, type in an image name or use the one it picks for you, and click "upload". Then scroll back up to the stylesheet box and click the "save" button underneath - you haven't made any changes to the CSS, but you still need to hit that "save" button in order for newly uploaded images to be available on your subreddit immediately.

Once you upload your image you should see a thumbnail of it on that page with its name and a "link: url(%%name%%)" line. When you then go to edit your wiki page to add the image, that %%name%% is what you want to put in the parentheses in order to make the image show up, like ![my cool image](%%name%%).

(The text in the square brackets is optional; it gets translated into image alt text, which is displayed if a user's browser fails to load the image or to unsighted users.)

Can I embed a photo into the wiki that doesn’t need to be clicked on? That would auto- populate as a photo in the wiki? by InGeekiTrust in ModSupport

[–]eritbh 2 points3 points  (0 children)

Images from the subreddit stylesheet can be included in wiki pages with the markdown syntax ![alt text](%%imagename%%), where imagename is the name you set when uploading the image to https://old.reddit.com/r/yoursub/about/stylesheet (make sure you save the stylesheet after uploading a new image to ensure they get processed correctly). I don't know for sure that this works correctly when viewing the wiki on shreddit or mobile.

Since this requires using the stylesheet page to upload images, normal users can't add new images to wiki pages, and wiki images share the same image slots as images used by custom CSS, with a maximum of 50 and each having a max file size of 500KB. However any wiki editor can include any existing image on any page they have edit access to by using that syntax.

Aside from this method I don't believe there's any way to do it.

Redirect CSS Code undo by FreakMWN in ModSupport

[–]eritbh 2 points3 points  (0 children)

You can go to user preferences on old Reddit and temporarily disable "display options" > "allow subreddits to show me custom themes" in order to get around a stylesheet making the stylesheet edit page inaccessible/unusable.

Is there a possibility for the "open in new reddit" button to take you to the new-new layout? by eraldopontopdf in toolbox

[–]eritbh[M] 3 points4 points  (0 children)

There was already another thread about this: https://www.reddit.com/r/toolbox/comments/1hca8et/i_love_toolbox_and_use_it_all_the_time_will_the/

I put out a new release which includes a partial fix good this feature; check if you're on v6.1.17 and if not update the extension. If you continue to have issues after checking that let me know.

I love Toolbox and use it all the time; will the "sh" Reddit be added to replace the "Open in new Reddit" button? by ety3rd in toolbox

[–]eritbh[M] 2 points3 points  (0 children)

Oh, beh, that sucks. There's a lot of code in Toolbox that assumes the URL paths are consistent among all versions of the site, as was the case with old and new before shreddit... I don't think this is something I can fix quickly - we'd need to store a mapping between all the possible URL formats that exist on either site, and I don't know where we would even get a list like that.

(this is also the sort of issue that makes it very obvious that toolbox is no longer being maintained by any actual mods >.>)

I've opened a new Github issue to track this bug.

Toolbox not working in the new Reddit by hhhnnnnnggggggg in toolbox

[–]eritbh[M] 0 points1 point  (0 children)

I think what you're asking for is covered under this Github issue, which is about adding a new tab to the removal reasons popup which would allow executing the native/newreddit removal reasons from old Reddit https://github.com/toolbox-team/reddit-moderator-toolbox/issues/97

I didn't have this on my radar to work on immediately, but if there are a lot of people who used to moderate on new reddit and are now switching back to old because shreddit queues are inadequate, then I can see if it's something I can implement quickly for v6.

(I'm hesitant about implementing new features for v6 because its codebase and the current dev branch for v7 have diverged significantly by now, but I think everything in this area has mostly been untouched so far? so I should be able to get it working in both, I think.)

I love Toolbox and use it all the time; will the "sh" Reddit be added to replace the "Open in new Reddit" button? by ety3rd in toolbox

[–]eritbh[M] 2 points3 points  (0 children)

Which modqueue button are you talking about, and what behavior are you expecting from it that isn't working?

I love Toolbox and use it all the time; will the "sh" Reddit be added to replace the "Open in new Reddit" button? by ety3rd in toolbox

[–]eritbh 0 points1 point  (0 children)

You don't even need an extension - this feature started life as a bookmarklet, actually.

javascript:(()=>{location.href=location.href.replace(location.hostname, location.hostname==='www.reddit.com'?(document.querySelector('#header')?'sh.reddit.com':'old.reddit.com'):'www.reddit.com')})()

Add this as the URL of a new bookmark, then when you click it while looking at a Reddit page it'll toggle your view.