Created
September 18, 2019 15:43
-
-
Save igorbrigadir/3f42d9ab49a7bfab692e1878074839cb to your computer and use it in GitHub Desktop.
rm_dm.js
This file contains hidden or 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 rm_dm | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description remove DMs menu from twitter, visit https://twitter.com/messages manually | |
| // @author igorbrigadir | |
| // @match https://twitter.com/* | |
| // @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js | |
| // @require https://gist.github.com/raw/2625891/waitForKeyElements.js | |
| // @grant GM_addStyle | |
| /* globals jQuery, $, waitForKeyElements */ | |
| // ==/UserScript== | |
| ( | |
| function() { | |
| 'use strict'; | |
| waitForKeyElements("nav a[aria-label^='Direct Messages']", deleteMenu); | |
| function deleteMenu(jNode) { | |
| // Do stuff with the <a> here, maybe don't delete it, hide notifications?. Deletes menu by default. | |
| jNode.remove() | |
| } | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment