Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
tweetdeck-limit-override.js
// ==UserScript==
// @name TweetDeck Cramming
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Allow 280 characters in a Tweet sent from TweetDeck automatically
// @author Erydactyl and Zemnmez
// @run-at document-idle
// @match https://tweetdeck.twitter.com/*
// @grant *
// ==/UserScript==
var stopcondition = false;
interval = setInterval(function(){
if (stopcondition==false) {
if (/New Tweet/i.test (document.body.innerHTML) ) {
TD.services.TwitterClient.prototype.makeTwitterCall = function(b, e, f, g, c, d, h) {
c = c || function() {};
d = d || function() {};
b = this.request(b, {
method: f,
params: Object.assign(e, {
weighted_character_count: !0
}),
processor: g,
feedType: h
});
return b.addCallbacks(function(a) {
c(a.data);
}, function(a) {
d(a.req, "", a.msg, a.req.errors);
}), b;
};
twttrTxt = Object.assign({}, twttr.txt, {
isInvalidTweet: function() {
return !1;
},
getTweetLength: function() {
return twttr.txt.getTweetLength.apply(this, arguments) - 140;
}
});
stopcondition = true;
}
}
},500);
@narutochatsrcool

This comment has been minimized.

Copy link

narutochatsrcool commented Sep 30, 2017

Please make one for the updated script! ( https://gist.github.com/Zemnmez/ffb5449d873d5407c7172534b762ae46#file-tweetdeck-limit-override-dm-rt-fix-js ) I don't know how to do this myself.

@CollinChaffin

This comment has been minimized.

Copy link

CollinChaffin commented Oct 1, 2017

Frustrated that like most I was not blessed with the new 280 char tweeting, and the "fixes" out there don't work anymore, I decided to fix :) As as a fully automatic #Greasemonkey #Tampermonkey script here: http://bit.ly/unlock280 Get your #280tweets on while you can! :)

Kickass

@clarkbaker

This comment has been minimized.

Copy link

clarkbaker commented Oct 6, 2017

Awesome. Appreciated, but doesn't work anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.