Skip to content

Instantly share code, notes, and snippets.

@yuki-yano
Last active October 5, 2015 02:49
Show Gist options
  • Select an option

  • Save yuki-yano/4f4035852042639f1a54 to your computer and use it in GitHub Desktop.

Select an option

Save yuki-yano/4f4035852042639f1a54 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name DeleteTweet
// @namespace dionore
// @include https://twitter.com/dionore/statuses/*
// @version 1
// @grant none
// ==/UserScript==
(function(){
setTimeout(function() {
$("button:contains('削除')").each(function(){
if ($(this).text() == 'ツイートを削除') {
$(this).trigger('click')
}
if ($(this).text() == '削除') {
$(this).trigger('click')
}
})
}, 3000);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment