Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
You cannot remove the "Due to U.S. trade controls law restrictions" alert on github? Use this script with tampermonkey!
// ==UserScript==
// @name Remove Github Racism
// @namespace http://tampermonkey.net/
// @version 1
// @description Your account been restricted by github and you can see the big fucking "Due to U.S..."? No more fam! FUCK GITHUB AND USA
// @author Hirbod Behnam
// @match https://*.github.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var elements = document.getElementsByClassName("flash-warn");
for(var i = 0;i< elements.length;i++){
var a = elements[i].childNodes[1].childNodes[1].textContent.trim();
if(a.startsWith("Due to U.S.")){
elements[i].parentNode.removeChild(elements[0]);
}
}
})();
@HirbodBehnam

This comment has been minimized.

Copy link
Owner Author

commented Jul 27, 2019

I know it's bullshit but it works :D

@hoseinhamzei

This comment has been minimized.

Copy link

commented Jul 27, 2019

thanks bro that was really annoying

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.