As for current version of script 2.0.1 and up-to-date version of YT, main container of added button (id = zh-wl) has className "undefined" insted of "ytd-menu-renderer". Since (afaik) at the moment of execution of the handler "addButton" the container of the "share" button indeed has its className field as "undefined". As a result, the added button doesnt have any spacing after "share" button (at least). Temporary fix is hardcoding className to "ytd-menu-renderer".
As for current version of script 2.0.1 and up-to-date version of YT, main container of added button (id = zh-wl) has className "undefined" insted of "ytd-menu-renderer".
Since (afaik) at the moment of execution of the handler "addButton" the container of the "share" button indeed has its className field as "undefined".
As a result, the added button doesnt have any spacing after "share" button (at least). Temporary fix is hardcoding className to "ytd-menu-renderer".