Skip to content

Commit

Permalink
updated right clicker
Browse files Browse the repository at this point in the history
  • Loading branch information
dmorgantini committed Dec 4, 2011
1 parent 5e18cf1 commit c063b27
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 29 deletions.
52 changes: 25 additions & 27 deletions charityclicks/background.html
@@ -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>
4 changes: 2 additions & 2 deletions charityclicks/manifest.json
@@ -1,7 +1,7 @@
{
"name": "CharityClick",
"version": "0.0.2",
"description": "Give to charities without the hassles of taking out your wallet whenever you are inspired by a video or article.",
"version": "0.0.3",
"description": "See charities to donate to on the hover of your mouse",
"icons": {
"16": "skin/flying-heart-icon_16.png",
"32": "skin/flying-heart-icon_32.png",
Expand Down

0 comments on commit c063b27

Please sign in to comment.