Last active
December 31, 2017 10:12
-
-
Save HelloWorld017/795b0e619f2e64d470311b4f36e44e15 to your computer and use it in GitHub Desktop.
Github No Billing Message
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 Github No Billing Message | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Remove billing message in github | |
// @author You | |
// @match *://*.github.com/* | |
// @grant none | |
// ==/UserScript== | |
(() => { | |
'use strict'; | |
const $$ = document.querySelectorAll.bind(document); | |
$$('.flash .container h4').forEach((v) => { | |
console.log(v); | |
if(v.innerText.includes('We are having a problem billing the')) { | |
v.parentElement.parentElement.style.display = 'none'; | |
} | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment