mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-23 03:15:48 +02:00
Disable broken TweetDeck metrics
This commit is contained in:
parent
13945ec937
commit
293ddacd19
@ -625,6 +625,21 @@
|
||||
TD.services.TwitterMedia.YOUTUBE_RE = new RegExp(TD.services.TwitterMedia.YOUTUBE_LONG_RE.source+"|"+TD.services.TwitterMedia.YOUTUBE_TINY_RE.source);
|
||||
TD.services.TwitterMedia.SERVICES["youtube"] = TD.services.TwitterMedia.YOUTUBE_RE;
|
||||
|
||||
//
|
||||
// Block: Disable TweetDeck metrics.
|
||||
//
|
||||
TD.metrics.inflate = function(){};
|
||||
TD.metrics.inflateMetricTriple = function(){};
|
||||
TD.metrics.log = function(){};
|
||||
TD.metrics.makeKey = function(){};
|
||||
TD.metrics.send = function(){};
|
||||
|
||||
onAppReady.push(function(){
|
||||
let data = $._data(window);
|
||||
delete data.events["metric"];
|
||||
delete data.events["metricsFlush"];
|
||||
});
|
||||
|
||||
//
|
||||
// Block: Register the TD.ready event, finish initialization, and load plugins.
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user