Skip to content

Instantly share code, notes, and snippets.

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
// @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://**
// @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.")){

This comment has been minimized.

Copy link
Owner Author

HirbodBehnam commented Jul 27, 2019

I know it's bullshit but it works :D


This comment has been minimized.

Copy link

hoseinhamzei 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.