Danbooru

Embedded notes feature missing?

Posted under Bugs & Features

I'm not sure what's going on, but usually I find the check box for embed notes in the edit tab, and it's not there anymore. What gives? It's not like embedded notes got dropped because all of the comics I posted before still have embedded notes.

I'm glad it was removed, TBH. I didn't care for it and thought it didn't add much of value to the site. I much prefer the old way, though I wouldn't be opposed to it being added back with a toggle to allow the user to select whether they see embedded notes or not.

In the interim, I created the following bookmarklets for enabling and disabling embedded notes. Depending on whether this option comes back or is completely removed, I'll move it to topic #8502. It's been copied to forum #136193. Will eventually remove the code below so it won't need to be maintained in two separate locations.

Enable embedded notes

javascript:var conf=confirm("Enable embedded notes?");if (conf){var temp=$.ajax({type:"PUT",url:"/posts/"+Danbooru.meta("post-id")+".json",data:{'post':{"has_embedded_notes":true}},success:(data)=>{Danbooru.notice("Settings updated.");window.location=window.location;},error:(data)=>{Danbooru.notice("Error updating settings!");}});};

Disable embedded notes

javascript:var conf=confirm("Disable embedded notes?");if (conf){var temp=$.ajax({type:"PUT",url:"/posts/"+Danbooru.meta("post-id")+".json",data:{'post':{"has_embedded_notes":false}},success:(data)=>{Danbooru.notice("Settings updated.");window.location=window.location;},error:(data)=>{Danbooru.notice("Error updating settings!");}});};
Edit:
  • (2017-12-02)

Updated

Got the word back in commit b361809 that the removal of this option from the edit tab is more of a permanent thing.

albert said:

It honestly isn't used much at all. It's active on 4450 posts, which represents 1.3% of all posts with notes. For existing posts it'll continue to work (and I suppose you can update it via the API) but I don't think that usage rate warrants taking up screen real estate.

That being confirmed, I'll go ahead and copy the above sets of bookmarklets to topic #8502 and update about:userscripts.

Updated

b4z73rd said:

So, I how do I enable it with those bookmarklets?

Go to your browser’s bookmark manager, create a new bookmark and put one of BrokenEagle’s code snippets into the URL field.

When you’re viewing a post that you want to enable/disable embedded notes on, click on the corresponding bookmark from your browser’s bookmark menu.

IIRC, it’s a builder+ feature, though, so you probably won’t be able to use it. Ask a builder to enable embedded notes on a post.

I just went to embed notes and found the option was gone.

albert said:
It honestly isn't used much at all. It's active on 4450 posts, which represents 1.3% of all posts with notes. For existing posts it'll continue to work (and I suppose you can update it via the API) but I don't think that usage rate warrants taking up screen real estate.

How much real-estate does a single checkbox really take? It's not a good enough reason to remove a feature used on 1000s of posts.

Was the checkbox always showing in the Edit options? If so, then why not only have it show when in Note Editing mode? That would solve any real estate concerns.

BrokenEagle98 said:

You can just use the bookmarklets, or whatever other API method you prefer.

I read the thread and saw that, but bookmarklets are just a workaround and not the correct solution.

The feature should continue to be exposed in the UI for both ease and discoverability.

It seems weird to take away functions and substitute ingenious workarounds, and in addition have all those ingenious workarounds increasingly unknown to average users who then will never know what was once normal.

Emblematic of how the Internet is going forward: eventually all the code will be made by robots aka other code, which they will then take away for our own good.

The bookmarklet doesn't work for me?

1. Manually create a new bookmark in my browser with the Location set to the code provided above for "Enable embedded notes"
2. Go to a post. ex. post #2942184
3. Run the bookmark
4. Get dialog asking to enable embedded notes.

If choose "OK", get taken to page that simply has text "[object Object]".
If choose "Cancel", get taken to page that says "false".

What is odd is that it works if I run the code directly from the Web Console in Firefox.

Updated

1