Skip to content

Instantly share code, notes, and snippets.

@padajo
Last active April 5, 2023 15:34
Show Gist options
  • Save padajo/df28f95901d92365d50623de1b6f12e9 to your computer and use it in GitHub Desktop.
Save padajo/df28f95901d92365d50623de1b6f12e9 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Get Rid Of The Dog
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Get rid of the dog on the bird site
// @author Paul Johnston
// @match https://twitter.com/*
// @match https://*.twitter.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Your code here...
// a gist to get rid of the dog on... that site
// uses standard javascript
window.addEventListener('load', function() {
// need to wait here for a short moment to allow the page to load
setTimeout(() => {
let homeNodes = document.querySelectorAll('[href="/home"]');
let gElement = homeNodes[0].querySelectorAll("g");
gElement[0].remove();
}, "1000");
}, false);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment