I was trying to do a basic extension for good chrome what I wanted is that when I open my extension I minimize the chrome only when I open it or activate or load it. the json is:
{
"name": "CHANNEL NAME",
"version": "0.1",
"manifest_version": 2,
"description": "CHANNEL DESCRIPTION",
"browser_action": {
"default_icon": "icon.png",
"default_title": "EXTENSTION DESCRIPTION",
"default_popup": "extension.html"
},
"content_security_policy": "script-src 'self' https://www.google.com; object-src 'self'",
"icons": {
"128": "icon.png"
}
}
html:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<link href='style.css' rel='stylesheet' type='text/css'>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Tinkernut</title>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript" src="feed.js"></script>
<base target="_blank">
</head>
<body bgcolor="#FFF">
<table class="body-wrap">
<tr>
<td class="container">
<div class="content">
<div id="pattern" class="pattern">
<form action="http://www.youtube.com/user/gigafide/search" method="get" class="f" target="_blank">
<input type="search" name="query" placeholder="Search Videos.." />
<input type="submit" class="btn search-submit" value="Search">
</form>
</div>
<div id="feed"></div>
<div id="logo">
<a href="http://www.youtube.com/gigafide"><img src="icon.jpg" /></a>
</div>
</div>
</td>
</tr>
</table>
</body>
</html>
javascript:
google.load("feeds", "1");
function initialize() {
var feed = new google.feeds.Feed("http://gdata.youtube.com/feeds/api/users/CHANNEL_NAME/uploads");
feed.setNumEntries(10);
var count = 1;
feed.load(function(result) {
if (!result.error) {
var container = document.getElementById("feed");
var html = "";
for (var i = 0; i < result.feed.entries.length; i++) {
var entry = result.feed.entries[i];
html = "<h5>" + count++ + ". <a href='" + entry.link + "'>" + entry.title + "</a></h5>";
var div = document.createElement("div");
div.innerHTML = html;
container.appendChild(div);
}
document.write(html);
}
});
}
google.setOnLoadCallback(initialize);
and it was also to gain a little looseness. Is there any possible way to minimize my browser using my chrome extension?