Skip to content

Instantly share code, notes, and snippets.

View wernersa's full-sized avatar

Werner Sævland wernersa

View GitHub Profile
@wernersa
wernersa / localstorageupload.user.js
Created July 11, 2023 15:30
Userscript: Upload chrome local storage to glot.io (pastebin alternative)
// ==UserScript==
// @name Export token
// @version 0.1
// @description Retrieve token from local storage and upload to glot.io (pastebin alternative)
// @author Werner
// @match https://example.com
// @run-at document-end
// @grant GM_xmlhttpRequest
// ==/UserScript==
@wernersa
wernersa / confidentialcalendar.user.js
Last active June 1, 2023 01:11
Userscript for hiding information from google calendar
// ==UserScript==
// @name Confidential google calendar
// @namespace https://gist.githubusercontent.com/wernersa/f3bd3edd69dccb6a3a5386526a81a309/raw/confidentialcalendar.user.js
// @version 0.24
// @description Remove any identifying information from being shown on google calendar
// @author Werner Sævland
// @match https://calendar.google.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=google.com
// @run-at document-idle
// @grant none
@wernersa
wernersa / json_to_ical.py
Created April 30, 2023 08:51
Get the 2023 IFSC events in JSON-format and export as iCal format
import json
from urllib.request import urlopen
import ics
from dateutil import parser
if __name__ == "__main__":
url = "https://components.ifsc-climbing.org/results-api.php?api=season_leagues_calendar&league=418"
response = urlopen(url)
@wernersa
wernersa / .block
Last active September 6, 2018 19:40
Building a Normal Distribution Histogram v4
license: mit
height: 600
border: yes
scrolling: no
@wernersa
wernersa / github_awesome_stargazers.user.js
Last active November 29, 2019 10:25
Userscript: GitHub Awesome Stargazers
// ==UserScript==
// @name GitHub Awesome Stargazers
// @description Augments the main markdown section of GitHub (i.e. README.md) by retrieving star count for each repo from the GitHub API. Intended for surfing "awesome" GitHub lists.
// @author Werner Sævland
// @namespace https://github.com/wernersa/
// @version 1.0
// @include https://github.*/*/*
// @supportURL https://gist.github.com/wernersa/a8df0dd03b6995d70a87934d0814d60d
// @license GPLv2; http://www.gnu.org/licenses/
// ==/UserScript==