Skip to content

Instantly share code, notes, and snippets.

@fortserious
Last active January 25, 2021 21:01
Show Gist options
  • Save fortserious/ecffeb0ef1d28ddf577cf5d395337653 to your computer and use it in GitHub Desktop.
Save fortserious/ecffeb0ef1d28ddf577cf5d395337653 to your computer and use it in GitHub Desktop.
twitter oulipo
// ==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();
}
});
}
);
@fortserious
Copy link
Author

Update to match capital Es as well.

@fortserious
Copy link
Author

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