diff --git a/Resources/Plugins/reply-account/.meta b/Resources/Plugins/reply-account/.meta index 73c01cf9..332219bb 100644 --- a/Resources/Plugins/reply-account/.meta +++ b/Resources/Plugins/reply-account/.meta @@ -8,7 +8,7 @@ Custom reply account chylex [version] -1.2 +1.2.1 [website] https://tweetduck.chylex.com diff --git a/Resources/Plugins/reply-account/browser.js b/Resources/Plugins/reply-account/browser.js index 6a876ea8..cb1a44f0 100644 --- a/Resources/Plugins/reply-account/browser.js +++ b/Resources/Plugins/reply-account/browser.js @@ -22,10 +22,19 @@ enabled(){ var section = data.element.closest("section.column"); var column = TD.controller.columnManager.get(section.attr("data-column")); - var header = $("h1.column-title", section); + var header = $(".column-title", section); + var title = header.children(".column-head-title"); - var columnTitle = header.children(".column-head-title").text(); - var columnAccount = header.children(".attribution").text(); + var columnTitle, columnAccount; + + if (title.length){ + columnTitle = title.text(); + columnAccount = header.children(".attribution").text(); + } + else{ + columnTitle = header.children(".column-title-edit-box").val(); + columnAccount = ""; + } try{ query = configuration.customSelector(column.getColumnType(), columnTitle, columnAccount, column); @@ -134,4 +143,4 @@ disabled(){ $(document).off("uiInlineComposeTweet", this.uiComposeTweetEvent); $(document).off("uiDockedComposeTweet", this.uiComposeTweetEvent); $(document).off("click", ".js-account-list .js-account-item", this.onSelectedAccountChanged); -} \ No newline at end of file +}