У меня очень маленькое расширение Google Chrome, которое использует Google Feed API для сбора некоторых данных.
Но проблема в том, что посетители не могут нажимать на какие-либо ссылки.Я хотел бы получить некоторые идеи о том, как это исправить.По сути, любые ссылки в popup.html не открываются на новой вкладке.
У нас есть manifest.json, popup.html и 3 файла значков
Вот мой manifest.json
{
"name": "Gujarati Suvichar",
"version": "0.0.1",
"description": "Gujarati Suvichar from GujaratiSuvichar.com",
"icons": { "16": "gujarat - 16.jpg",
"48": "gujarat - 48.jpg",
"128": "gujarat - 128.jpg" },
"browser_action": {
"default_icon": "gujarat.jpg",
"popup": "popup.html"
}
}
Вот фактический код из popup.html
<style>
body {
min-width:350px;
height:100px;
overflow-x:hidden;
}
#footer {
color: #F30;
}
#footer a{
color: #F30;
}
</style>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<script src="http://www.google.com/jsapi?key=AIzaSyA5m1Nc8ws2BbmPRwKu5gFradvD_hgq6G0" type="text/javascript"></script>
<body style="font-family: Arial;border: 0 none;">
<script type="text/javascript">
/*
* How to use the Feed Control to grab, parse and display feeds.
*/
google.load("feeds", "1");
function OnLoad() {
// Create a feed control
var feedControl = new google.feeds.FeedControl();
// Add two feeds.
feedControl.addFeed("http://www.gujaratisuvichar.com/feed", "Gujarati Suvichar");
// Draw it.
feedControl.draw(document.getElementById("content"));
}
google.setOnLoadCallback(OnLoad);
</script>
<div id="header">
<div class="container">
<h1>ગà«àªœàª°àª¾àª¤à«€ સà«àªµàª¿àªšàª¾àª°</h1>
</div>
</div>
<style>
.gf-result .gf-author, .gf-result .gf-spacer, .gf-result .gf-relativePublishedDate {
display: none;
}
.gfc-result .gf-title a{
text-decoration:none;
color:#CCC
}
</style>
<div id="content">
<div id="content">Loading...</div>
</div>
<div id="footer">
<span id="footer">More on <a href="http://www.gujaratisuvichar.com/">GujaratiSuvichar.com</a></span> </div>
</body>