1
0
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 
This commit is contained in:
chylex 2022-05-07 17:03:23 +02:00
parent dc0fc06673
commit 2c69289785
Signed by: chylex
GPG Key ID: 4DE42C8F19A80548
3 changed files with 16 additions and 0 deletions
resources/Content

View File

@ -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";

View File

@ -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}

View 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 };
}