# HG changeset patch # User nanaya # Date 1530363415 -32400 # Node ID e76b7766d5bf06654e6a16647e6d47864e43f1ca # Parent 28fde586a234cfc5bd75f3c4b9a2f1432f2c0faf Or not diff -r 28fde586a234 -r e76b7766d5bf twitter-cleanup.user.js --- a/twitter-cleanup.user.js Sat Jun 30 21:50:51 2018 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,28 +0,0 @@ -// ==UserScript== -// @name Twitter Cleanup -// @namespace https://myconan.net -// @version 1.0.0 -// @description Strip out twitter craps (no, it doesn't turn the site blank) -// @author nanaya -// @match https://www.twitter.com/* -// @match https://twitter.com/* -// @grant none -// @downloadURL https://bitbucket.org/!api/2.0/snippets/nanayapro/TK64/tip/files/twitter-cleanup.user.js -// ==/UserScript== - -;(function() { - "use strict"; - - var $ = jQuery; - var rules = []; - var i; - var styleEl; - - rules.push('[data-component-context="suggest_activity_tweet"] { display: none !important; }'); - - for (i = 0; i < rules.length; i++) { - styleEl = document.createElement('style'); - document.head.appendChild(styleEl); - styleEl.sheet.insertRule(rules[i], 0); - } -}).call();