summaryrefslogtreecommitdiff
path: root/data/extensions/DMCAreg@0xbeef.coffee/unhidehtml.js
blob: 5a8f5e6cf0439f4814b44ac50d3c898b65efd65f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

function get_domain(url){
	var domain = url.replace('http://','').replace('https://','').split(/[/?#]/)[0];
	if(url.indexOf("http://") == 0){
		domain = "http://" + domain;
	}
	else if(url.indexOf("https://") == 0){
		domain = "https://" + domain;
	}
	domain = domain + "/";
	domain = domain.replace(/ /g,"");
	return domain;
}

if(get_domain(document.location.href) == "https://dmca.copyright.gov/"){

}