Skip to content

Instantly share code, notes, and snippets.

@starlocke
Created February 13, 2017 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save starlocke/c0d72c480f5363388e1fd7b2a200b328 to your computer and use it in GitHub Desktop.
Save starlocke/c0d72c480f5363388e1fd7b2a200b328 to your computer and use it in GitHub Desktop.
#Twitter {Auto-Translate} {You can have this.}
/**
* 1. Install "CJS" (Custom JavaScript for Web) Extension for your
* https://chrome.google.com/webstore/detail/custom-javascript-for-web/poakhlngfciodnhlhhgnaaelnpjljija
* 2. Apply the following snippet for the host "https://twitter.com"
* 3. Save
*/
var auto_translate = function(){
$('button.translate-button:visible').click();
};
var frequency = 512; // milliseconds
setInterval(auto_translate,frequency);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment