Click here to Skip to main content
15,867,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm creating a chrome extension in that im having the above error in jquery.min.js


manifest.json

{
	"name": "Tutorialzine Extension",
	"manifest_version": 2,
	"version": "1.1",
	"description": "Making your first Google Chrome extension.",
	"icons":{
		"128":"icon_128.png"
	},
	"web_accessible_resources": ["script.js","https://query.yahooapis.com"],
	"browser_action":	{
		"default_icon": "icon.png",
		"default_popup": "tutorialzine.html"
	},
"Permissions":["tabs", "<all_urls","http://localhost/",
"http://*/*", "https://*/*","https://query.yahooapis.com"],
"content_security_policy": "default-src 'self';style-src 'self' 'unsafe-inline'"
}

Tutorialzine.html

HTML
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css" />
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="script.js"></script>
</head>

<body>

<h1>Latest Tutorials on Tutorialzine</h1>

<div id="content"></div>
</body>
</html>


jquery.min.js contains inline script which could not be executed . please help..


JavaScript
parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}try{delete b.test}catch(o){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function k(){c.support.noCloneEvent=false;d.detachEvent("onclick",k)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement("div");k.style.width=k.style.paddingLeft="1px";s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display="none"});a=function(k){var n=
Posted
Updated 15-Jul-13 2:39am
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900