diff --git a/Resources/Plugins/design-revert/.meta b/Resources/Plugins/design-revert/.meta deleted file mode 100644 index 42d10d46..00000000 --- a/Resources/Plugins/design-revert/.meta +++ /dev/null @@ -1,25 +0,0 @@ -[name] -Revert TweetDeck design changes - -[description] -- Individually configurable options to revert and tweak TweetDeck design changes -- Moves action menu to the right and hides it by default -- Reverts interactive texts around tweets (such as 'Details' or 'Conversation') - -[author] -chylex - -[version] -1.2 - -[website] -https://tweetduck.chylex.com - -[configfile] -configuration.js - -[configdefault] -configuration.default.js - -[requires] -1.4.1 \ No newline at end of file diff --git a/Resources/Plugins/design-revert/browser.js b/Resources/Plugins/design-revert/browser.js deleted file mode 100644 index 2b8eeff3..00000000 --- a/Resources/Plugins/design-revert/browser.js +++ /dev/null @@ -1,46 +0,0 @@ -enabled(){ - this.css = window.TDPF_createCustomStyle(this); - this.prevFooterMustache = TD.mustaches["status/tweet_single_footer.mustache"]; - - // load configuration - window.TDPF_loadConfigurationFile(this, "configuration.js", "configuration.default.js", config => { - if (config.hideTweetActions){ - this.css.insert(".tweet-action { opacity: 0; }"); - this.css.insert(".is-favorite .tweet-action, .is-retweet .tweet-action { opacity: 0.5; visibility: visible !important; }"); - this.css.insert(".tweet:hover .tweet-action, .is-favorite .tweet-action[rel='favorite'], .is-retweet .tweet-action[rel='retweet'] { opacity: 1; visibility: visible !important; }"); - } - - if (config.moveTweetActionsToRight){ - this.css.insert(".tweet-actions { float: right !important; width: auto !important; }"); - this.css.insert(".tweet-actions > li:nth-child(4) { margin-right: 2px !important; }"); - } - - if (config.smallComposeTextSize){ - this.css.insert(".compose-text { font-size: 12px !important; height: 120px !important; }"); - } - - if (config.revertConversationLinks){ - var footer = TD.mustaches["status/tweet_single_footer.mustache"]; - footer = footer.replace('txt-mute txt-size--12', 'txt-mute txt-small'); - footer = footer.replace('{{#inReplyToID}}', '{{^inReplyToID}} <a class="pull-left margin-txs txt-mute txt-small is-vishidden-narrow" href="#" rel="viewDetails">{{_i}}Details{{/i}}</a> <a class="pull-left margin-txs txt-mute txt-small is-vishidden is-visshown-narrow" href="#" rel="viewDetails">{{_i}}Open{{/i}}</a> {{/inReplyToID}} {{#inReplyToID}}'); - footer = footer.replace('<span class="link-complex-target"> {{_i}}View Conversation{{/i}}', '<i class="icon icon-conversation icon-small-context"></i> <span class="link-complex-target"> <span class="is-vishidden-wide is-vishidden-narrow">{{_i}}View{{/i}}</span> <span class="is-vishidden is-visshown-wide">{{_i}}Conversation{{/i}}</span>'); - TD.mustaches["status/tweet_single_footer.mustache"] = footer; - } - - if (config.moveTweetActionsToRight){ - $(document).on("uiShowActionsMenu", this.uiShowActionsMenuEvent); - } - }); - - // fix layout for right-aligned actions menu - this.uiShowActionsMenuEvent = function(){ - $(".js-dropdown.pos-r").toggleClass("pos-r pos-l"); - }; -} - -disabled(){ - this.css.remove(); - TD.mustaches["status/tweet_single_footer.mustache"] = this.prevFooterMustache; - - $(document).off("uiShowActionsMenu", this.uiShowActionsMenuEvent); -} diff --git a/Resources/Plugins/design-revert/configuration.default.js b/Resources/Plugins/design-revert/configuration.default.js deleted file mode 100644 index b1507283..00000000 --- a/Resources/Plugins/design-revert/configuration.default.js +++ /dev/null @@ -1,22 +0,0 @@ -{ - /* - * Hides the action bar below each tweet. - * The action bar fully appears when the mouse is over the tweet, or at half the opacity when the tweet is liked/retweeted. - */ - hideTweetActions: true, - - /* - * Moves the action bar to the right side of the tweet. - */ - moveTweetActionsToRight: true, - - /* - * Reverts New Tweet font size to a smaller one. - */ - smallComposeTextSize: false, - - /* - * Reverts design changes to the 'View Conversation' and 'Details' links. - */ - revertConversationLinks: true -} \ No newline at end of file diff --git a/bld/gen_upd.iss b/bld/gen_upd.iss index 4bd9179c..33af83d8 100644 --- a/bld/gen_upd.iss +++ b/bld/gen_upd.iss @@ -59,6 +59,7 @@ Type: files; Name: "{app}\CefSharp.BrowserSubprocess.exe" Type: files; Name: "{app}\td-log.txt" Type: files; Name: "{app}\debug.log" Type: files; Name: "{localappdata}\{#MyAppName}\ChromeDWriteFontCache" +Type: filesandordirs; Name: "{app}\plugins\official\design-revert" [UninstallDelete] Type: files; Name: "{app}\*.*"