Skip to content

Instantly share code, notes, and snippets.

@NickColley
NickColley / govuk-dark.user.scss
Last active October 21, 2026 18:26
GOV.UK Dark theme (User style)
/* ==UserStyle==
@name GOV.UK Dark mode
@namespace github.com/openstyles/stylus
@version 1.0.5
@homepageURL https://gist.github.com/NickColley/57fb4b4365894ca63f80ec1e062f1ecc
@updateURL https://gist.githubusercontent.com/NickColley/57fb4b4365894ca63f80ec1e062f1ecc/raw/govuk-dark.user.scss?version=1.0.5
@description GOV.UK Dark theme modelled after the GitHub soft dark mode
@author Nick Colley
==/UserStyle== */
@NickColley
NickColley / index.js
Last active August 7, 2026 10:41
Get Civil Service Jobs Shortcode Link
const linkWithShortcode = document.querySelector(`[href*="jcode%3D"]`);
const [_, shortcode] = linkWithShortcode.href.match(/jcode%3D([0-9]+)[^0-9]/);
const shareUrl = `https://www.civilservicejobs.service.gov.uk/csr/jobs.cgi?jcode=${shortcode}`;
const closes = document.querySelector(".vac_display_closing_date").textContent.trim();
const jobRole = document.querySelector("#id_common_page_title_h1").textContent.trim();
const employer = document.querySelector(".csr-page-subtitle").textContent.trim();
const salary = Array.from(
@NickColley
NickColley / icons.svg
Created July 17, 2026 10:36
Add Clickable Anchors to GOV.UK Design System website
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@NickColley
NickColley / ooo.js
Created November 7, 2022 02:02
Get the ooo domains
import { writeFile } from "node:fs/promises";
import { promisify } from "node:util";
import fetch from "node-fetch";
import logUpdate from "log-update";
import logSymbols from "log-symbols";
import { stringify } from "csv";
const toCSV = promisify(stringify);
let count = 0;
let max = 100;
@NickColley
NickColley / lighthouse-single-chart-flourish-on.json
Created April 19, 2021 12:42
Lighthouse Single Chart Flourish ON
{
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36",
"environment": {
"networkUserAgent": "Mozilla/5.0 (Linux; Android 7.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4143.7 Mobile Safari/537.36 Chrome-Lighthouse",
"hostUserAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36",
"benchmarkIndex": 1916,
"credits": {
"axe-core": "4.1.1"
}
},
@NickColley
NickColley / lighthouse-single-chart-flourish-off.json
Created April 19, 2021 12:41
Lighthouse Single Chart Flourish OFF
{
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36",
"environment": {
"networkUserAgent": "Mozilla/5.0 (Linux; Android 7.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4143.7 Mobile Safari/537.36 Chrome-Lighthouse",
"hostUserAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36",
"benchmarkIndex": 1598,
"credits": {
"axe-core": "4.1.1"
}
},
@NickColley
NickColley / lighthouse-charticle-flourish-on.json
Created April 19, 2021 12:39
Lighthouse Charticle Flourish ON
This file has been truncated, but you can view the full file.
{
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36",
"environment": {
"networkUserAgent": "Mozilla/5.0 (Linux; Android 7.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4143.7 Mobile Safari/537.36 Chrome-Lighthouse",
"hostUserAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36",
"benchmarkIndex": 1603.5,
"credits": {
"axe-core": "4.1.1"
}
},
@NickColley
NickColley / lighthouse-charticle-flourish-off.json
Created April 19, 2021 12:38
Lighthouse Report Charticle Flourish OFF
This file has been truncated, but you can view the full file.
{
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36",
"environment": {
"networkUserAgent": "Mozilla/5.0 (Linux; Android 7.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4143.7 Mobile Safari/537.36 Chrome-Lighthouse",
"hostUserAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36",
"benchmarkIndex": 1924,
"credits": {
"axe-core": "4.1.1"
}
},
@NickColley
NickColley / index.html
Last active August 11, 2020 10:50
Voluntary Product Accessibility Template (VPAT) - HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>VPAT Template</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
html {
max-width: 960px;
@NickColley
NickColley / vpat-template.html
Created August 11, 2020 09:44
VPAT Template HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>VPAT Template</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<h1>[Company] Accessibility Conformance Report WCAG Edition (Based on VPAT® Version 2.4)</h1>