]> git.rmz.io Git - dotfiles.git/commitdiff
qutebrowser: enable clipboard for gitlab and github
authorSamir Benmendil <me@rmz.io>
Sat, 14 Jan 2023 01:37:55 +0000 (01:37 +0000)
committerSamir Benmendil <me@rmz.io>
Sat, 14 Jan 2023 02:35:29 +0000 (02:35 +0000)
qutebrowser/config.py

index 470d26348cce1baaa8712a9f78ac47babdb268fd..fc19e169bb72409d2a6d6bcada0acd713774df71 100644 (file)
@@ -527,7 +527,9 @@ c.content.headers.accept_language = 'en-UK;q=1.0, en;q=0.9, de;q=0.7, fr;q=0.7,
 ##   - none: Disable access to clipboard.
 ##   - access: Allow reading from and writing to the clipboard.
 ##   - access-paste: Allow accessing the clipboard and pasting clipboard content.
-# c.content.javascript.clipboard = 'none'
+c.content.javascript.clipboard = 'none'
+config.set('content.javascript.clipboard', 'access', '*://*.gitlab.com/*')
+config.set('content.javascript.clipboard', 'access', '*://*.github.com/*')
 
 ## Enable JavaScript.
 ## Type: Bool