I created a plugin called dev-tools that gives you some useful tools that help you write a plugin and init.js.
By installing the plugin it adds some context menus for copying data IDs.
Copying a notebook ID from the sidebar context menu:
Copying a note ID from the sidebar context menu:
Copying a tag ID from the sidebar context menu:
Copying a tag ID from the editor context menu: