Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5e18cf1
commit c063b27
Showing
2 changed files
with
27 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | ||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
|
||
<!-- | ||
background.html | ||
Copyright © 2009, 2010 WOT Services Oy <info@mywot.com> | ||
This file is part of WOT. | ||
WOT is free software: you can redistribute it and/or modify it | ||
under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
WOT is distributed in the hope that it will be useful, but WITHOUT | ||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | ||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | ||
License for more details. | ||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<script type="text/javascript" src="jquery.js"></script> | ||
</head> | ||
<body> | ||
<script type="text/javascript"> | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with WOT. If not, see <http://www.gnu.org/licenses/>. | ||
--> | ||
chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) { | ||
if (tab.url !== "http://www.guardian.co.uk/society/2011/dec/04/charities-welcome-cash-for-homes?INTCMP=SRCH" && | ||
tab.url !== "http://www.ted.com/speakers/sunitha_krishnan.html") | ||
chrome.browserAction.setIcon({path: "skin/flying-heart-icon_19_mono.png"}); | ||
else | ||
chrome.browserAction.setIcon({path: "skin/flying-heart-icon_19.png"}); | ||
}); | ||
|
||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<script type="text/javascript" src="jquery.js"></script> | ||
</head> | ||
<body> | ||
<canvas id="wot-icon" width="19" height="19"/> | ||
</body> | ||
chrome.tabs.onSelectionChanged.addListener(function(tabId, selectInfo) { | ||
chrome.tabs.get(tabId, function (tab) { | ||
if (tab.url !== "http://www.guardian.co.uk/society/2011/dec/04/charities-welcome-cash-for-homes?INTCMP=SRCH" && | ||
tab.url !== "http://www.ted.com/speakers/sunitha_krishnan.html") | ||
chrome.browserAction.setIcon({path: "skin/flying-heart-icon_19_mono.png"}); | ||
else | ||
chrome.browserAction.setIcon({path: "skin/flying-heart-icon_19.png"}); | ||
}); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters