sferik / t-ruby

A command-line power tool for Twitter.
http://sferik.github.com/t
MIT License
5.43k stars 410 forks source link

configuring t requires running a nonfree program #415

Open ian-kelling opened 5 years ago

ian-kelling commented 5 years ago

The README says go to https://apps.twitter.com/app/new

Which is just a nonfree javascript program:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <script src="/api/features.js" type="text/javascript" ></script>
  <link href="https://ton.twimg.com/dataproducts/dist/styles-dda40477bb495d7fee76.css" rel="stylesheet"></head>
  <body>
    <div id="root"></div>
  <script type="text/javascript" src="https://ton.twimg.com/dataproducts/dist/bundle-dda40477bb495d7fee76.js"></script></body>
</html>
$ wget -q -O- https://ton.twimg.com/dataproducts/dist/bundle-dda40477bb495d7fee76.js 
!function(e){var t=window.webpackHotUpdate;window.webpackHotUpdate=function(e,n){!function(e,t){if(_[e]&&v[e]){for(var n in v[e]=!1,t)Object.prototype.hasOwnProperty.call(t,n)&&(h[n]=t[n]);0==--A&&0===g&&N()}}(e,n),t&&t(e,n)};var n,r=!0,o="dda40477bb495d7fee76",a=1e4,i={},s=[],c=[];function u(e){var t=C[e];if(!t)return T;var r=function(r){return t.hot.active?(C[r]?-1===C[r].parents.indexOf(e)&&C[r].parents.push(e):(s=[e],n=r),-1===t.children.indexOf(r)&&t.children.push(r)):(console.warn("[HMR] unexpected require("+r+") from disposed module "+e),s=[]),T(r)},o=function(e){return{configurable:!0,enumerable:!0,get:function(){return T[e]},set:function(t){T[e]=t}}};for(var a in T)Object.prototype.hasOwnProperty.call(T,a)&&"e"!==a&&"t"!==a&&Object.defineProperty(r,a,o(a));return r.e=function(e){return"ready"===f&&d("prepare"),g++,T.e(e).then(t,function(e){throw t(),e});function t(){g--,"prepare"===f&&(b[e]||w(e),0===g&&0===A&&N())}},r.t=function(e,t){return 1&t&&(e=r(e)),T.t(e,-2&t)},r}var l=[],f="idle";function d(e){f=e;for(var t=0;t<l.length;t++)l[t].call(null,e)}var p,h,m,A=0,g=0,b={},v={},_={};function y(e){return+e+""===e?+e:e}function E(e){if("idle"!==f)t

....

https://github.com/hayamiz/twittering-mode seems to work without doing an app, perhaps t takes advantage of features that require the app? There may be no real answer here since no one likely wants to reverse engineer all that js. But its worth letting people know that twitter dev site requires running a nonfree program, not a nice thing to do.

ian-kelling commented 5 years ago

Also I've heard that twidere is a relatively full featured twitter client, and doesn't have to deal with this app stuff.