Skip to content

Instantly share code, notes, and snippets.

View vogler's full-sized avatar

Ralf Vogler vogler

  • Munich, Germany
  • 11:02 (UTC +02:00)
View GitHub Profile
@vogler
vogler / video-scroll-seek.tamper.js
Last active November 30, 2023 00:47
Tampermonkey: video: scroll=seek
// ==UserScript==
// @name Video: scroll=seek
// @namespace https://gist.github.com/vogler
// @downloadURL https://gist.github.com/vogler/b7c66088cd22f899496f353d5295b7ad/raw/video-scroll-seek.tamper.js
// @version 0.26
// @description Scrolling a video seeks back/forward
// @author Ralf Vogler
// @match *://*/*
// @grant none
// ==/UserScript==
@vogler
vogler / zsh.md
Last active April 30, 2020 14:19

autocomplete requires too many tabs

sorin-ionescu/prezto#1725

Is it already possible to configure some of this in zsh? http://zsh.sourceforge.net/Doc/Release/Completion-System.html

Tried the following:

  • expand ❓: If one of its values is the string ‘suffix’, matching names for components after the first ambiguous one will also be added. This means that the resulting string is the longest unambiguous string possible. However, menu completion can be used to cycle through all matches.
@vogler
vogler / cloudSettings
Last active July 8, 2021 11:44
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-07-08T11:44:12.260Z","extensionVersion":"v3.4.3"}
type a = { id: number, name: string, foo: string }
type b = { id: string, name: string, bar: string }
type c = a | b
type d = a & b
type id = d['id'] // number & string = never (bot)
const va: a = {id: 1, name: 'ha', foo: 'foo'}
const vb: b = {id: '1', name: 'ha', bar: 'bar'}
const vc1: c = va
const vc2: c = vb
@vogler
vogler / fix-search.aliexpress.tamper.js
Last active December 30, 2019 23:55
Tampermonkey: AliExpress: Orders: Enter = search, use https
// ==UserScript==
// @name AliExpress: Orders: Enter = search, use https
// @namespace https://gist.github.com/vogler
// @downloadURL https://gist.github.com/vogler/6d29fa58650fe976a5a4360be0a6b594/raw/fix-search.aliexpress.tamper.js
// @version 0.3
// @description Hitting 'Enter' should start the search in 'Orders', always use https
// @author Ralf Vogler
// @match *://trade.aliexpress.com/order*ist.htm*
// there are links to order_list.htm and orderList.html
// @grant none
@vogler
vogler / auto-login.aliexpress.tamper.js
Last active May 7, 2020 19:40
Tampermonkey: AliExpress: auto-login via Facebook
// ==UserScript==
// @name AliExpress: auto-login
// @namespace https://gist.github.com/vogler
// @downloadURL https://gist.github.com/vogler/d8461ff3b272c772527800763a772750/raw/auto-login.aliexpress.tamper.js
// @version 0.1
// @description Auto-login via Facebook since it doesn't require entering a captcha
// @author Ralf Vogler
// @match *://login.aliexpress.com/*
// @grant none
// ==/UserScript==
@vogler
vogler / surfingkeys.js
Last active January 27, 2025 15:26
Surfingkeys config
// https://github.com/brookhong/Surfingkeys/wiki/Migrate-your-settings-from-0.9.74-to-1.0
const {
aceVimMap,
mapkey,
imap,
imapkey,
getClickableElements,
vmapkey,
map,
iunmap,
@vogler
vogler / fix-price.aliexpress.tamper.js
Last active November 2, 2023 14:03
Tampermonkey: AliExpress: show total price incl. shipping
// ==UserScript==
// @name AliExpress: show total price incl. shipping
// @namespace https://gist.github.com/vogler
// @downloadURL https://gist.github.com/vogler/ea7e21d67cb8a3a0c701ecb25839a4ec/raw/fix-price.aliexpress.tamper.js
// @version 0.6
// @description Show the total price (item price + shipping) per item.
// @author Ralf Vogler
// @match https://www.aliexpress.com/wholesale*
// @match https://www.aliexpress.com/af/*
// @grant none
@vogler
vogler / coupon-percentage.aliexpress.tamper.js
Last active June 16, 2020 12:28
Tampermonkey: AliExpress: show coupon percentage
// ==UserScript==
// @name AliExpress: show coupon percentage
// @namespace https://gist.github.com/vogler
// @downloadURL https://gist.github.com/vogler/2d1bfcd01ad5c248bf0fa38a7cced198/raw/coupon-percentage.aliexpress.tamper.js
// @version 0.1
// @description Show percentage for each coupon.
// @author Ralf Vogler
// @match https://coupon.aliexpress.com/buyer/coupon/*
// @grant none
// ==/UserScript==
@vogler
vogler / saved-shipping.aliexpress.tamper.js
Last active June 17, 2020 20:01
AliExpress: cart: 'real shipping' = shipping - 'shipping saved'
// ==UserScript==
// @name AliExpress: cart: 'real shipping' = shipping - 'shipping saved'
// @namespace https://gist.github.com/vogler
// @downloadURL https://gist.github.com/vogler/41f0b6a5bead9e4670dc9c9b30454a0e/raw/saved-shipping.aliexpress.tamper.js
// @version 0.2
// @description Show the real shipping cost, i.e. minus the shared/saved shipping. Without this it's hard to optimize shipping since there also might be other savings.
// @author Ralf Vogler
// @match https://shoppingcart.aliexpress.com/shopcart/*
// @grant none
// ==/UserScript==