Last active
January 25, 2021 21:01
-
-
Save fortserious/ecffeb0ef1d28ddf577cf5d395337653 to your computer and use it in GitHub Desktop.
twitter oulipo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name twitter oulipo | |
// @namespace rossdoran.com | |
// @version 0.1 | |
// @description only consonants and non-consonants from a-d, f-z | |
// @author ross doran | |
// @match https://twitter.com/* | |
// @run-at document-start | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js | |
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js | |
// ==/UserScript== | |
waitForKeyElements(".css-901oao.r-jwli3a.r-1qd0xha.r-16dba41.r-ad9z0x.r-bcqeeo.r-bnwqim.r-qvutc0 span", function() { | |
$(".css-901oao.r-jwli3a.r-1qd0xha.r-16dba41.r-ad9z0x.r-bcqeeo.r-bnwqim.r-qvutc0 span").each(function() { | |
var body = $(this).text(); | |
if (body.indexOf("e") > -1 || body.indexOf("E") > -1) | |
{ | |
$(this).closest("article").parent().remove(); | |
} | |
}); | |
} | |
); |
Update to match capital Es as well.
Bug: deletes quote RTs if they have e's, which may lose some other undeserving tweets. Watch this space.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Chrome: https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en
Firefox: https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/