diff options
| author | Jez Ng | 2012-01-15 15:40:49 +0800 |
|---|---|---|
| committer | Jez Ng | 2012-01-15 17:39:29 +0800 |
| commit | 3ff0518014a51f237d1d98ebc15c0ce4be24c2b5 (patch) | |
| tree | a97defdd480879cf297d22d8a23435172ca16596 /background_page.html | |
| parent | 4ca60a80f0e3d5c4818d05417c869bde6340d792 (diff) | |
| download | vimium-3ff0518014a51f237d1d98ebc15c0ce4be24c2b5.tar.bz2 | |
Add URL pasting functions. Closes #353.
Diffstat (limited to 'background_page.html')
| -rw-r--r-- | background_page.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/background_page.html b/background_page.html index 06c48359..c62697b0 100644 --- a/background_page.html +++ b/background_page.html @@ -267,6 +267,14 @@ Clipboard.copy(request.data); } + function openCopiedUrlInCurrentTab(request) { + openUrlInCurrentTab({ url: Clipboard.paste() }); + } + + function openCopiedUrlInNewTab(request) { + openUrlInNewTab({ url: Clipboard.paste() }); + } + /* * Returns the core CSS used for link hints, along with any user-provided overrides. */ |
