Skip to content

Instantly share code, notes, and snippets.

@wragge
wragge / australian-federal-governments.csv
Last active October 29, 2026 01:54
A list of Australian governments since Federation compiled from data in the Australian Parliamentary Handbook
phid pm party start_date end_date
009LR BARTON, the Rt. Hon. Sir Edmund, GCMG, KC Non-Labor 1901-01-01 1903-09-24
009MD DEAKIN, the Hon. Alfred Non-Labor 1903-09-24 1904-04-27
F4R WATSON, the Hon. John (Chris) Christian Labor 1904-04-27 1904-08-18
F4P REID, the Rt. Hon. Sir George Houstoun, GCB, GCMG, KC Non-Labor 1904-08-18 1905-07-05
009MD DEAKIN, the Hon. Alfred Non-Labor 1905-07-05 1908-11-13
F4N FISHER, the Rt. Hon. Andrew Labor 1908-11-13 1909-06-02
009MD DEAKIN, the Hon. Alfred Non-Labor 1909-06-02 1910-04-29
F4N FISHER, the Rt. Hon. Andrew Labor 1910-04-29 1913-06-24
F4S COOK, the Rt. Hon. Sir Joseph, GCMG Non-Labor 1913-06-24 1914-09-17
@wragge
wragge / link-slv-allmaps.user.js
Last active October 30, 2025 05:54
Displays buttons to open SLV digitised maps in AllMaps for viewing and/or georeferencing
@wragge
wragge / slv_easter_egg_hunt.user.js
Last active October 1, 2025 10:15
SLV Easter Egg Hunt
// ==UserScript==
// @name SLV easter egg hunt
// @namespace wraggelabs.com/slv_easter_egg_hunt
// @match *://viewer.slv.vic.gov.au/?entity=*
// @grant none
// @version 1.0
// @author -
// @description 28/09/2025, 14:41:35
// @require https://cdn.jsdelivr.net/gh/CoeJoder/waitForKeyElements.js@v1.3/waitForKeyElements.js
// ==/UserScript==
@wragge
wragge / slv_add_wikimedia_commons_links.user.js
Created September 29, 2025 03:28
Add links from SLV digitised items to entries in Wikimedia Commons
@wragge
wragge / slv-catalogue-add-info.user.js
Created September 28, 2025 07:38
Add extra information to the display of items in the SLV catalogue
// ==UserScript==
// @name SLV add catalogue info
// @namespace Violentmonkey Scripts
// @match *://find.slv.vic.gov.au/discovery/*
// @grant none
// @version 1.0
// @author -
// @description 28/09/2025, 14:41:35
// @require https://cdn.jsdelivr.net/gh/CoeJoder/waitForKeyElements.js@v1.3/waitForKeyElements.js
// ==/UserScript==
@wragge
wragge / slv-myfavs-menu.user.js
Created September 28, 2025 07:34
Add a 'My favourites' menu to the SLV main navigation
// ==UserScript==
// @name SLV My Favs menu creator
// @namespace Violentmonkey Scripts
// @match *://www.slv.vic.gov.au/*
// @grant none
// @version 1.0
// @author -
// @description 28/09/2025, 11:19:01
// ==/UserScript==
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "https://gist.github.com/wragge/766f619d82b7cb4c3c5edc756fd45437/raw",
"@type": "sc:Manifest",
"label": "Index to City of Melbourne detail fire survey",
"description": "",
"attribution": "This work is out of copyright",
"metadata": [
{
"label": "Author",
@wragge
wragge / display_slv_iiif_urls.user.js
Created September 8, 2025 02:51
Userscript to display the IIIF Manifest URL in the State Library of Victoria's image viewer
// ==UserScript==
// @name Display SLV IIIF urls
// @namespace wraggelabs.com/display_slv_iiif_urls
// @match *://viewer.slv.vic.gov.au/?entity=IE*
// @grant GM.setClipboard
// @version 1.0
// @author Tim Sherratt (tim@timsherratt.au)
// @description Displays the IIIF Manifest URL in the State Library of Victoria's image viewer.
// @require https://cdn.jsdelivr.net/gh/CoeJoder/waitForKeyElements.js@v1.3/waitForKeyElements.js
// ==/UserScript==
@wragge
wragge / add-wikidata-links-to-adb.user.js
Last active August 25, 2025 03:27
Add links from Wikidata to entries in the Australian Dictionary of Biography
@wragge
wragge / hide_tags_trove_lists.user.js
Last active July 17, 2025 02:49
Userscript that hides tags in the display of Trove lists and adds a link to toggle their visibility
// ==UserScript==
// @name Hide tags in Trove lists
// @description Hides tags in the display of Trove lists and adds a link to toggle their visibility
// @namespace wraggelabs.com/hide-tags-trove-lists
// @match *://trove.nla.gov.au/list/*
// @require https://code.jquery.com/jquery-3.7.1.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @version 0.1
// @author Tim Sherratt
// @homepage https://timsherratt.au