-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimperatorrc
479 lines (392 loc) · 14.8 KB
/
.vimperatorrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
" Vimperator
" Steven Acres
" ----------
" ui
colorscheme default
set toolbars=nonavigation,tabs,addons
set maxitems=10
set status=input,ssl,location,bookmark
set showstatuslinks=1
set animations
set titlestring="Vim FooFox"
" Set _my_ leader
let mapleader='\'
" Our *look*
set gui=none,tabs,nonavigation,addons
" Disable alt-key menu-toggle
set! ui.key.menuAccessKeyFocuses=false
" autocomplete with smart Firefox stuff and open tabs
set complete=ltSs
" tab operation
noremap <C-h> gT
noremap <C-l> gt
noremap <C-p> :tabmove! -1<CR>
noremap <C-n> :tabmove! +1<CR>
" noscript.js
noremap <Leader>s :noscript toggletemp<CR>
noremap <Leader>S :noscript toggleperm<CR>
noremap <Leader>r :noscript togglerevokeall<CR>
" Remove all identifiers from privacy settings (w/ mapping to key)
noremap <Leader>d :sanitize cache downloads cookies sessions formdata history -timespan 0<CR>
" keep messages around for 2 seconds
set messagetimeout=2000
" Better searching
set ignorecase
set smartcase
" Turn of search hilite after search
nnoremap <CR> :nohlsearch<CR><CR>
" DuckDuckGo search
set defsearch=ddg
set! suggestengines=ddg
set! activate=all
" Wild option
" set wildmode=list:longest,full
" hints
set hintmatching=contains
set followhints=1
set hintinputs=''
" set hintchars=fdasjkl;rcexunim
" focus the content
" set focuscontent
" vimperator commands open in new tabs
set newtab=all
" remappings
nnoremap j 3j
nnoremap k 3k
nnoremap h 3h
nnoremap l 3l
nnoremap J gt
nnoremap K gT
nnoremap x :tabclose<cr>
nnoremap I <S-Esc>
nnoremap ~ <Nop>
" Set Custom UserAgent
set! general.useragent.override="Mozilla/5.0 (Windows NT 6.1; rv:45.0) Gecko/20100101 Firefox/45.0"
" ignorekeys ; keeping unused as examples for end-users
ignorekeys clear
" ignorekeys add drive\\.google\\.com
" ignorekeys add -except=t,T,o,O,:,g,q inbox\\.google\\.com
" ignorekeys add -except=t,T,o,O,:,q mail\\.google\\.com
ignorekeys add -except=: rememberthemilk\\.com
" ignorekeys add youtube\\.com
" Firefox
" -------
" -----------------------------------------------------------------------
" - about:config -
" -----------------------------------------------------------------------
set! network.dns.disableIPv6=false
set! network.dns.disablePrefetch=true
set! network.dnsCacheExpiration=0
" DuckDuckGo
set! browser.startup.homepage=liberator://help/intro
set! keyword.URL=https://duckduckgo.com/?&kc=-1&km=m&k1=-1&kg=p&t=debian&kz=-1&kaa=f1a87b&ku=1&kp=-1&k9=88a3eb&k5=1&kam=osm&kac=-1&kah=wt-wt&kao=-1&kak=-1&kad=en_US
set! browser.search.suggest.enabled=false
set! browser.search.update=false
" full URLs don't scare me
set! browser.urlbar.trimURLs=false
" new tab page is about:blank
set! browser.newtab.url=about:blank
" enable pipelining
set! network.http.pipelining=true
set! network.http.pipelining.abtest=false
set! network.http.pipelining.aggressive=true
set! network.http.pipelining.max-optimistic-requests=3
set! network.http.pipelining.maxrequests=12
set! network.http.pipelining.maxsize=300000
set! network.http.pipelining.read-timeout=60000
set! network.http.pipelining.reschedule-on-timeout=true
set! network.http.pipelining.reschedule-timeout=15000
set! network.http.max-connections=256
set! network.http.max-connections-per-server=6
" tabs on bottom; slightly more space
set! browser.tabs.onTop=true
" hide audio playing icon
set! browser.tabs.showAudioPlayingIcon=false
" no warnings
set! browser.tabs.warnOnClose=false
set! browser.tabs.warnOnCloseOtherTabs=false
set! browser.tabs.warnOnOpen=false
set! general.warnOnAboutConfig=false
" open tabs to the right of the current
set! browser.tabs.insertRelatedAfterCurrent=true
set! browser.tabs.insertRelatedAfterCurrent.override=true
" No close Vim FooFox on last tab close
set! browser.tabs.closeWindowWithLastTab=false
" what to clear after shutdown?
set! privacy.clearOnShutdown.cache=true
set! privacy.clearOnShutdown.cookies=true
set! privacy.clearOnShutdown.downloads=true
set! privacy.clearOnShutdown.formdata=true
set! privacy.clearOnShutdown.history=true
set! privacy.clearOnShutdown.offlineApps=true
set! privacy.clearOnShutdown.passwords=true
set! privacy.clearOnShutdown.sessions=true
set! privacy.clearOnShutdown.siteSettings=true
" clear cookies on close or in a day
set! network.cookie.lifetimePolicy=2
set! network.cookie.lifetime.days=1
" clear last download location when we run this file
set! browser.download.lastDir=""
" sup NSA
set! privacy.donottrackheader.enabled=true
set! privacy.donottrackheader.value=1
set! privacy.trackingprotection.enabled=true
" private browsing settings
set! browser.privatebrowsing.autostart=true
set! browser.privatebrowsing.dont_prompt_on_enter=true
" don't check if we're the default browser
set! browser.shell.checkDefaultBrowser=false
" don't wait to install extensions
set! security.dialog_enable_delay=0
" make sure CSP is enabled
set! security.csp.enable=true
" I've seen the rights thing
set! browser.rights.3.shown=true
" spellcheck in <inputs> too
set! layout.spellcheckDefault=2
" view that source
set! view_source.syntax_highlight=true
set! view_source.wrap_long_lines=true
" don't animate fullscreen
set! browser.fullscreen.animate=false
" *not* dark devtools
set! devtools.theme="light"
" disable cache with devtools open
set! devtools.cache.disabled=true
" remove stuff from devtools that I don't use
" set! devtools.performance.enabled=false
" set! devtools.scratchpad.enabled=false
" set! devtools.styleeditor.enabled=false
" Security/Privacy (also see NoScript stuff below)
" ----------------------------------------
set! dom.event.clipboardevents.enabled=false
set! dom.battery.enabled=false
" TEST resist fingerprint
set! privacy.resistFingerprinting=true
" Beacon block
set! beacon.enabled=false
" only cookies from origins
set! network.cookie.cookieBehavior=1
" what if Google...couldn't see everything I downloaded?
set! breakpad.reportURL=""
set! browser.safebrowsing.appRepURL=""
set! browser.safebrowsing.debug=false
set! browser.safebrowsing.downloads.enabled=false
set! browser.safebrowsing.downloads.remote.enabled=false
set! browser.safebrowsing.enabled=false
set! browser.safebrowsing.gethashURL=""
set! browser.safebrowsing.malware.enabled=false
set! browser.safebrowsing.malware.reportURL=""
set! browser.safebrowsing.reportErrorURL=""
set! browser.safebrowsing.reportGenericURL=""
set! browser.safebrowsing.reportMalwareErrorURL=""
set! browser.safebrowsing.reportMalwareURL=""
set! browser.safebrowsing.reportPhishURL=""
set! browser.safebrowsing.reportURL=""
set! browser.safebrowsing.updateURL=""
set! browser.send_pings.require_same_host=true
set! browser.send_pings=false
" send referrer headers only to the same domain
" set! network.http.sendRefererHeader=1
" set! network.http.referer.XOriginPolicy=1
set! network.http.referer.spoofSource=true
" set! network.http.referer.trimmingPolicy=2
" disable some TLS stuff
set! security.ssl3.dhe_rsa_aes_128_sha=false
set! security.ssl3.dhe_rsa_aes_256_sha=false
" Greasemonkey
" ------------
" operate in complete darkness and evil
set! extensions.greasemonkey.stats.optedin=false
" shut up
set! extensions.greasemonkey.installDelay=1
set! extensions.greasemonkey.stats.prompted=true
" Ghostery
" --------
" REMOVED & Disabled
" LastPass
" --------
" UNUSED
" damn these keys are hot
" set! extensions.lastpass.defaultffidHkKeyCode=0
" set! extensions.lastpass.defaultffidHkMods=""
" set! extensions.lastpass.generateHkKeyCode=0
" set! extensions.lastpass.generateHkMods=""
" set! extensions.lastpass.homeHkKeyCode=0
" set! extensions.lastpass.homeHkMods=""
" set! extensions.lastpass.nextHkKeyCode=76
" set! extensions.lastpass.nextHkMods="control shift"
" set! extensions.lastpass.prevHkKeyCode=0
" set! extensions.lastpass.prevHkMods=""
" set! extensions.lastpass.recheckHkKeyCode=0
" set! extensions.lastpass.recheckHkMods=""
" set! extensions.lastpass.saveallHkKeyCode=0
" set! extensions.lastpass.saveallHkMods=""
" set! extensions.lastpass.searchHkKeyCode=0
" set! extensions.lastpass.searchHkMods=""
" set! extensions.lastpass.submitHkKeyCode=0
" set! extensions.lastpass.submitHkMods=""
" what to show and hide?
" set! extensions.lastpass.showChangePasswordNotifications=true
" set! extensions.lastpass.showFillNotifications=false
" set! extensions.lastpass.showFormFillNotifications=true
" set! extensions.lastpass.showHomepageAfterLogin=false
" set! extensions.lastpass.showLoginNotifications=false
" set! extensions.lastpass.showNotifications=false
" set! extensions.lastpass.showSaveSiteNotifications=true
" a better icon
" set! extensions.lastpass.Icon=1
" I will remember you / will you remember me
" set! extensions.lastpass.rememberUsername=true
" set! extensions.lastpass.rememberPassword=false
" speak American
" set! extensions.lastpass.language=en-US
" Pocket
" ------
" sync everything offline
set! extensions.isreaditlater.autoOffline=true
set! extensions.isreaditlater.autoSync=true
set! extensions.isreaditlater.getOfflineText=true
set! extensions.isreaditlater.getOfflineWeb=true
" only the hottest keys
set! extensions.isreaditlater.hotkey_click_mode=""
set! extensions.isreaditlater.hotkey_gr=""
set! extensions.isreaditlater.hotkey_open_list=""
set! extensions.isreaditlater.hotkey_push=""
set! extensions.isreaditlater.hotkey_sidebar=""
set! extensions.isreaditlater.hotkey_toggle="alt shift||P"
" misc.
set! extensions.isreaditlater.autoCloseTab=false
" Tree Style Tab
" --------------
" tab display
" set! extensions.treestyletab.twisty.style="sidebar"
" set! extensions.treestyletab.tabbar.invertTabContents=false
" " no indent
" set! extensions.treestyletab.maxTreeLevel.vertical=0
" " omnipresent tabs
" set! extensions.treestyletab.tabbar.autoHide.mode=0
" set! extensions.treestyletab.tabbar.autoHide.mode.fullscreen=0
" " vertical tabs
" set! extensions.treestyletab.autoAttach.duplicateTabCommand=0
" set! extensions.treestyletab.autoAttach.duplicateTabCommand.back=0
" set! extensions.treestyletab.autoAttach.duplicateTabCommand.forward=0
" set! extensions.treestyletab.autoAttach.fromCurrent=1
" set! extensions.treestyletab.autoAttach.goButton=0
" set! extensions.treestyletab.autoAttach.newTabButton=0
" set! extensions.treestyletab.autoAttach.newTabCommand=0
" set! extensions.treestyletab.autoAttach.searchResult=0
" " drop links like it's hot
" set! extensions.treestyletab.dropLinksOnTab.behavior=2
" " context items
" set! extensions.treestyletab.show.context-item-bookmarkTabSubtree=false
" set! extensions.treestyletab.show.context-item-collapseAllSubtree=false
" set! extensions.treestyletab.show.context-item-expandAllSubtree=false
" set! extensions.treestyletab.show.context-item-reloadDescendantTabs=false
" set! extensions.treestyletab.show.context-item-reloadTabSubtree=true
" set! extensions.treestyletab.show.context-item-removeAllTabsButThisTree=false
" set! extensions.treestyletab.show.context-item-removeDescendantTabs=true
" set! extensions.treestyletab.show.context-item-removeTabSubtree=true
" set! extensions.treestyletab.show.context-item-toggleAutoHide=false
" set! extensions.treestyletab.show.context-item-toggleFixed=false
" " no collapsing
" set! extensions.treestyletab.allowSubtreeCollapseExpand.horizontal=false
" set! extensions.treestyletab.allowSubtreeCollapseExpand.vertical=false
" NoScript and forbidden things
" -----------------------------
" what is forbidden?
set! browser.formfill.enable=false
set! browser.frames.enabled=false
set! browser.search.geoSpecificDefaults.url=""
set! browser.search.geoSpecificDefaults=false
set! browser.search.geoip.url=""
set! datareporting.healthreport.service.enabled=false
set! datareporting.healthreport.uploadEnabled=false
set! loop.enabled=false
set! media.eme.enabled=false
set! media.gmp-eme-adobe.enabled=false
set! network.dns.disablePrefetch=true
" set! noscript.forbidBookmarklets=true
" set! noscript.forbidFrames=true
" set! noscript.forbidIFrames=true
" set! noscript.forbidSilverlight=true
" set! noscript.noping=true
" set! noscript.nosniff=true
set! plugin.state.googletalkbrowserplugin=0
set! plugin.state.java=1
set! plugin.state.npgtpo3dautoplugin=0
set! plugin.state.o1dbrowserplugin=0
set! plugin.state.onlivegameclientdetector=0
set! plugins.click_to_play=true
set! reader.parse-on-load.enabled=false
set! security.enable_java=true
set! social.enabled=false
set! social.remote-install.enabled=false
set! social.sidebar.open=false
set! social.toast-notifications.enabled=false
set! social.whitelist=""
set! geo.enabled=false
set! geo.wifi.url=""
set! toolkit.telemetry.enabled=false
" what is allowed? javascript, ironically
" set! noscript.global=false
" set! noscript.forbidFlash=true
" set! noscript.forbidFonts=true
" set! noscipt.forbidMedia=true
" set! noscript.forbidWebGL=true
" goodbye, ABE
" set! noscript.ABE.enabled=false
" don't prevent clickjacking on trusted sites
" set! noscript.clearClick=1
" what's in the context menu?
" set! noscript.showAbout=false
" set! noscript.showAddress=false
" set! noscript.showAllowPage=true
" set! noscript.showBaseDomain=true
" set! noscript.showBlankSources=false
" set! noscript.showBlockedObjects=false
" set! noscript.showDistrust=true
" set! noscript.showDomain=false
" set! noscript.showExternalFilters=true
" set! noscript.showGlobal=false
" set! noscript.showPermanent=true
" set! noscript.showPlaceholder=true
" set! noscript.showRecentlyBlocked=false
" set! noscript.showRevokeTemp=false
" set! noscript.showTemp=true
" set! noscript.showTempAllowPage=true
" set! noscript.showTempToPerm=true
" set! noscript.showUntrusted=true
" set! noscript.showUntrustedPlaceholder=true
" Ublock functionality when docked to liberator
set! extensions.ublock0.forceLegacyToolbarButton=true
" shut up
" set! noscript.notify=false
" set! noscript.notify.bottom=true
" set! noscript.clearClick.prompt=false
" set! noscript.sound=false
" set! noscript.ABE.notify=false
" set! noscript.forbidMetaRefresh.notify=false
" set! noscript.xss.notify=false
" -----------------------------------------------------------------------
" - Disable Media AutoPlay -
" -----------------------------------------------------------------------
set! media.autoplay.enabled=false
" -----------------------------------------------------------------------
" - Proxy bindings -
" -----------------------------------------------------------------------
map <F9> :set! network.proxy.type=0<CR>
map <F10> :set! network.proxy.type=1<CR>
" Fix search highlighting
" Lifted from: https://github.com/ipwnponies/dotfiles/commit/43fd08c1eb0eedfcaebbb75aa4b4dc8fe52888ae
js <<EOF
finder.highlight = function() {
this.setupFindbar();
this.findbar.toggleHighlight(true);
}
EOF
" -----------------------------------------------------------------------
" - Start Message to Display -
" -----------------------------------------------------------------------
echo "GoGo Gadget..."
" vim: ft=vimperator ts=4 sw=4 sts=0 et