Skip to content

Instantly share code, notes, and snippets.

@honboubao
honboubao / HomeEnd.ahk
Created March 4, 2019 13:59
AutoHotkey script to map the windows key to the function like a laptop keyboard's Fn key to have Fn+arrow keys act as home, end, page up and page down keys.
;
; Home
;
; Win-Left = Home = start of line
#Left::Send {Home}
; Ctrl-Win-Left = Ctrl-Home = start of document
^#Left::Send {LCtrl down}{Home}{LCtrl up}
# mitmproxy addon to serve modified content
# how to use:
# 1. create replace.txt file in your current working directory
# 2. add urls you want to replace to that file, one line per url; urls can be regular expresions; lines starting with # are ignored
# 3. start mitmproxy with parameter -s mitmproxy_replace.py to load this addon
# 4. configure your OS or browser to use your running mitmproxy instance (default port 8080)
# 5. install mitmproxy certificate to allow proxying https by navigating to http://mitm.it/
# 5. navigate to the url you want to replace; a dump of the response content is created in the replace folder in your current working directory
# 6. modify the content dump and reload the page
@honboubao
honboubao / univis_calendar.js
Created July 13, 2014 16:28
Fügt dem Menü im Univis einen Prüfungskalender-Eintrag hinzu, der einen Kalender öffnet, in welchem Prüfungstermine angezeigt werden.
// ==UserScript==
// @name Univis Prüfungskalender
// @namespace hbb_works
// @include https://univis.univie.ac.at/*
// @description Fügt dem Menü im Univis einen Prüfungskalender-Eintrag hinzu, der einen Kalender öffnet, in welchem Prüfungstermine angezeigt werden.
// @grant GM_getValue
// @grant GM_setValue
// @version 1.0r131101
// @require http://code.jquery.com/jquery-2.0.3.min.js
// @require http://arshaw.com/js/fullcalendar-1.6.2/fullcalendar/fullcalendar.min.js
@honboubao
honboubao / youtube_storyboard.js
Last active November 4, 2016 19:01
mouse-over video thumbnail to preview video by cycling through the storyboard
// ==UserScript==
// @name Youtube Storyboard
// @namespace hbb_works
// @description mouse-over video thumbnail to preview video by cycling through the storyboard
// @version 1.3.1r1605101704
// @include http://*youtube.com*
// @include https://*youtube.com*
// @grant none
// ==/UserScript==