-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed it so that it copies it without the dialog
Much better. This is a chrome extension so we might as well use the document.exec command.
- Loading branch information
patricksnape
committed
Dec 7, 2012
1 parent
9739b4b
commit 4c71b13
Showing
19 changed files
with
29 additions
and
510 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>background</title> | ||
<script src="jquery.min.js"></script> | ||
<script src="background.js"></script> | ||
</head> | ||
<body> | ||
<textarea id="clipboard"></textarea> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
function copy(str) { | ||
var sandbox = $('#clipboard').val(str).select(); | ||
document.execCommand('copy'); | ||
sandbox.val(''); | ||
} | ||
|
||
chrome.extension.onMessage.addListener(function(request, sender, sendResponse) { | ||
copy(request); | ||
}); |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,24 +1,18 @@ | ||
{ | ||
"name": "QuickStack", | ||
"version": "0.1", | ||
"version": "0.2", | ||
"icons": { "48": "icon48.png", | ||
"128": "icon128.png" }, | ||
"content_scripts": [ { | ||
"all_frames": true, | ||
"js": [ "jquery.min.js", "jquery-ui.min.js", "script.js" ], | ||
"css": ["quickstack.css", "jquery-ui.css"], | ||
"js": [ "jquery.min.js", "script.js" ], | ||
"css": ["quickstack.css"], | ||
"matches": [ "http://stackoverflow.com/*"] | ||
} ], | ||
"background": { "page": "background.html" }, | ||
"manifest_version": 2, | ||
"description": "Quick expand StackOverflow posts", | ||
"web_accessible_resources": [ "images/ui-bg_glass_75_dadada_1x400.png", | ||
"images/ui-icons_454545_256x240.png", | ||
"images/ui-bg_flat_75_ffffff_40x100.png", | ||
"images/ui-icons_222222_256x240.png", | ||
"images/ui-bg_highlight-soft_75_cccccc_1x100.png", | ||
"images/ui-bg_flat_0_aaaaaa_40x100.png" | ||
], | ||
"description": "Quick expand StackOverflow posts", | ||
"permissions": [ | ||
"tabs", "http://www.stackoverflow.com/", "http://api.stackexchange.com/*" | ||
"clipboardRead", "clipboardWrite" | ||
] | ||
} |
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