mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-24 06:15:48 +02:00
Disable TweetDeck preview for accounts that have it enabled
Closes #337
This commit is contained in:
parent
dc0fc06673
commit
2c69289785
resources/Content
@ -24,6 +24,7 @@ import configure_first_day_of_week from "./tweetdeck/configure_first_day_of_week
|
||||
import configure_language_for_translations from "./tweetdeck/configure_language_for_translations.js";
|
||||
import disable_clipboard_formatting from "./tweetdeck/disable_clipboard_formatting.js";
|
||||
import disable_td_metrics from "./tweetdeck/disable_td_metrics.js";
|
||||
import disable_tweetdeck_preview from "./tweetdeck/disable_tweetdeck_preview.js";
|
||||
import drag_links_onto_columns from "./tweetdeck/drag_links_onto_columns.js";
|
||||
import expand_links_or_show_tooltip from "./tweetdeck/expand_links_or_show_tooltip.js";
|
||||
import fix_dm_input_box_focus from "./tweetdeck/fix_dm_input_box_focus.js";
|
||||
|
@ -8,6 +8,7 @@ if (!("TD" in window)) {
|
||||
*
|
||||
* @property {TD_Clients} clients
|
||||
* @property {TD_Components} components
|
||||
* @property {TD_Config} config
|
||||
* @property {TD_Controller} controller
|
||||
* @property {TD_Languages} languages
|
||||
* @property {TD_Metrics} metrics
|
||||
@ -64,6 +65,13 @@ if (!("TD" in window)) {
|
||||
* @property {Class<MediaGallery>} MediaGallery
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef TD_Config
|
||||
* @type {Object}
|
||||
*
|
||||
* @property {Object} config_overlay
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef TD_Controller
|
||||
* @type {Object}
|
||||
|
7
resources/Content/tweetdeck/disable_tweetdeck_preview.js
Normal file
7
resources/Content/tweetdeck/disable_tweetdeck_preview.js
Normal file
@ -0,0 +1,7 @@
|
||||
import { TD } from "../api/td.js";
|
||||
|
||||
export default function() {
|
||||
const overlay = TD.config.config_overlay || (TD.config.config_overlay = {});
|
||||
overlay["tweetdeck_gryphon_beta_enabled"] = { value: false };
|
||||
overlay["tweetdeck_gryphon_beta_bypass_enabled"] = { value: false };
|
||||
}
|
Loading…
Reference in New Issue
Block a user