summaryrefslogtreecommitdiff
path: root/data/extensions/DMCAreg@0xbeef.coffee/unhidehtml.js
diff options
context:
space:
mode:
Diffstat (limited to 'data/extensions/DMCAreg@0xbeef.coffee/unhidehtml.js')
-rw-r--r--data/extensions/DMCAreg@0xbeef.coffee/unhidehtml.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/data/extensions/DMCAreg@0xbeef.coffee/unhidehtml.js b/data/extensions/DMCAreg@0xbeef.coffee/unhidehtml.js
new file mode 100644
index 0000000..5a8f5e6
--- /dev/null
+++ b/data/extensions/DMCAreg@0xbeef.coffee/unhidehtml.js
@@ -0,0 +1,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/"){
+
+}