Skip to content
This repository was archived by the owner on Oct 31, 2020. It is now read-only.

Commit e2fb9d4

Browse files
committed
Initial commit.
0 parents  commit e2fb9d4

18 files changed

+1479
-0
lines changed

COPYRIGHT

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
ChromeGenPass = Google Chrome + SuperGenPass love.
2+
Copyright (C) 2010 Denis Sokolov http://sokolov.cc
3+
4+
This program is free software: you can redistribute it and/or modify
5+
it under the terms of the GNU General Public License as published by
6+
the Free Software Foundation, either version 3 of the License, or
7+
(at your option) any later version.
8+
9+
This program is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
GNU General Public License for more details.
13+
14+
You should have received a copy of the GNU General Public License
15+
along with this program. If not, see <http://www.gnu.org/licenses/>.

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

README

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This is Google Chrome a.k.a. Chromium extension to comfortably and
2+
SAFELY use SuperGenPass generated passwords on websites.

html/background.html

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
<!--
2+
ChromeGenPass = Google Chrome + SuperGenPass love.
3+
Copyright (C) 2010 Denis Sokolov http://sokolov.cc
4+
5+
This program is free software: you can redistribute it and/or modify
6+
it under the terms of the GNU General Public License as published by
7+
the Free Software Foundation, either version 3 of the License, or
8+
(at your option) any later version.
9+
10+
This program is distributed in the hope that it will be useful,
11+
but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
GNU General Public License for more details.
14+
15+
You should have received a copy of the GNU General Public License
16+
along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
-->
18+
<!DOCTYPE html>
19+
<html><head>
20+
<script>
21+
/*
22+
I had certain difficulty with optimizing jQuery load on pages
23+
without password fields.
24+
25+
Also, for hell knows why, <script src="foo.js"> did not work on
26+
this background page, so I used an eval hack.
27+
*/
28+
function get(src, callback){
29+
var xhr = new XMLHttpRequest();
30+
xhr.onreadystatechange = function() {if (xhr.readyState == 3){
31+
callback(xhr.responseText);
32+
}};
33+
xhr.open('GET', chrome.extension.getURL(src), true);
34+
xhr.send();
35+
}
36+
37+
passwords = [];
38+
39+
get('js/jquery-1.4.2.min.js', function(res){ jQuery = res; });
40+
get('js/orig.js', function(res){ supergenpass = res; });
41+
get('js/saveload.js', function(res){ eval(res); passwords = load(); });
42+
43+
chrome.extension.onRequest.addListener(function(req, sender, sendResponse){
44+
var responded = false;
45+
46+
if ('passwords' in req)
47+
{ // Options have been updated, new passwords available
48+
// Update local passwords
49+
passwords = req['passwords'];
50+
51+
// Inform all tabs
52+
chrome.windows.getAll({ 'populate': true }, function(windows){
53+
for (i in windows){ for (j in windows[i].tabs){
54+
chrome.tabs.sendRequest(windows[i].tabs[j].id, {
55+
'passwords': passwords,
56+
})
57+
}}
58+
});
59+
}
60+
61+
if ('init' in req)
62+
{ // A new tab wants to work with us, let's give it info
63+
sendResponse({
64+
'passwords': passwords,
65+
'jquery': jQuery,
66+
'supergenpass': supergenpass,
67+
});
68+
responded = true;
69+
}
70+
71+
// Close connection
72+
if (!responded)
73+
sendResponse({});
74+
});
75+
76+
/*
77+
Reference for future use.
78+
chrome.pageAction.show(sender.tab.id);
79+
80+
chrome.pageAction.onClicked.addListener(function(tab){
81+
chrome.tabs.sendRequest(tab.id, 'run');
82+
});
83+
*/
84+
</script></head></html>

html/test.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!DOCTYPE html>
2+
<!--
3+
color: black is implied.
4+
This gives an additional test that the script restores original
5+
color on change.
6+
-->
7+
<form>
8+
<input type="password" style="background-color: #B3BAFF;">
9+
</form>

img/COPYRIGHT

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
icon*.png
2+
is under Creative Commons Attribution 3.0 License.
3+
Created by Denis Sokolov, http://sokolov.cc.
4+
5+
supergenpass.png
6+
is under GNU GPL V2 as per
7+
http://supergenpass.com/faq/#Acknowledgments-and-License
8+
9+
All other icons
10+
are licensed under a Creative Commons Attribution 3.0 License.
11+
http://www.fatcow.com/free-icons/

img/cross.png

473 Bytes
Loading

img/icon128.png

1.12 KB
Loading

img/icon16.png

1.12 KB
Loading

img/icon48.png

1.12 KB
Loading

0 commit comments

Comments
 (0)