Browse Source

remove obsolete crap

Andrew Dolgov 10 months ago
parent
commit
30d2b5cc21
1 changed files with 0 additions and 30 deletions
  1. 0 30
      content.js

+ 0 - 30
content.js

@@ -4,11 +4,7 @@ function inject_css(css) {
 		.attr('type', 'text/css')
 		.text(css);
 
-	console.log(style[0]);
-
 	$("head").append(style);
-
-//    document.documentElement.appendChild(script);
 }
 
 chrome.runtime.sendMessage({method: "getCSS", href: location.href}, function(response) {
@@ -20,29 +16,3 @@ chrome.runtime.sendMessage({method: "getCSS", href: location.href}, function(res
 
 });
 
-/*chrome.runtime.sendMessage({method: "getSettings"}, function(response) {
-	try {
-		var settings = JSON.parse(response.settings);
-		var user_whitelist = settings.whitelist
-			.split(/\n/)
-			.filter(function(v) { return v.length > 0 });
-
-		whitelist = whitelist.concat(user_whitelist);
-	} catch (e) {
-		//
-	}
-
-	var whitelisted = false;
-
-	if (document.documentElement instanceof HTMLHtmlElement) {
-		for (var i = 0; i < whitelist.length; i++) {
-			if (location.href.indexOf(whitelist[i]) != -1) {
-				whitelisted = true;
-			}
-		}
-
-		if (!whitelisted) removeSelectionStuff();
-	}
-}); */
-
-