@@ -132,34 +132,13 @@ export class PostViewer extends RE6Module {
132132
133133 this . post = Post . getViewingPost ( ) ;
134134
135- // Move the add to set / pool buttons
136- const $addToContainer = $ ( "<div>" )
137- . addClass ( "ptbr-add-links" )
138- . insertAfter ( $ ( ".ptbr-fullscreen" ) . first ( ) ) ;
139- $ ( "li#add-to-set-list > a" )
140- . addClass ( "image-add-set" )
141- . addClass ( "st-button kinetic" )
142- . html ( "+ Set" )
143- . appendTo ( $addToContainer ) ;
144- $ ( "li#add-to-pool-list > a" )
145- . addClass ( "image-add-pool" )
146- . addClass ( "st-button kinetic" )
147- . html ( "+ Pool" )
148- . appendTo ( $addToContainer ) ;
149- if ( $addToContainer . children ( ) . length == 0 ) {
150- $addToContainer . css ( "display" , "none" ) ;
151- }
152-
153135 // Add a new note button
154- $ ( "#translate" )
155- . insertAfter ( $ ( ".ptbr-resize" ) . first ( ) )
136+ const translateButton = $ ( "#translate" ) ;
137+ translateButton . parents ( "#add-notes-list" ) . hide ( ) ;
138+
139+ translateButton . insertBefore ( $ ( ".ptbr-resize" ) . first ( ) )
156140 . addClass ( "st-button kinetic" )
157- . html ( "+ Note" )
158- . on ( "click" , async ( ) => {
159- if ( ! await Danbooru . Note . TranslationMode . active ( ) ) return ;
160- $ ( "#note-container" ) . removeClass ( "hidden" ) ;
161- $ ( ".ptbr-notes-button" ) . attr ( "enabled" , "true" ) ;
162- } ) ;
141+ . html ( "+ Note" ) ;
163142
164143
165144 // Move child/parent indicator, leave others as is, like marked for deletion
0 commit comments