Skip to content

Instantly share code, notes, and snippets.

View anevins12's full-sized avatar
🌱

Andrew Nevins anevins12

🌱
  • Intopia
  • Melbourne
View GitHub Profile
@anevins12
anevins12 / james-allen-ring-hider.js
Created July 7, 2021 20:52
James Allen ring hider
// ==UserScript==
// @name James Allen ring hider
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Provides a button for each ring to hide it, should you be in a position of narrowing it down. Refreshing the page undoes the hiding.
// @author You
// @match https://www.jamesallen.com/engagement-rings/solitaire/14k-rose-gold-2mm-comfort-fit-solitaire-engagement-ring-item-41238
// @icon https://www.google.com/s2/favicons?domain=jamesallen.com
// @grant none
// ==/UserScript==
@anevins12
anevins12 / bluenile-lifesize-gem.js
Last active June 14, 2021 16:15
Adds a button that views the gemstones in their real life measurements
// ==UserScript==
// @name Bluenile view gem in real size.
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Adds a button that resizes the gem imagery to the approximate measurement of the gem.
// @author anevins12
// @match https://www.bluenile.com/uk/build-your-own-ring/*
// @icon https://www.google.com/s2/favicons?domain=bluenile.com
// @grant none
// ==/UserScript==
@anevins12
anevins12 / google-santa-trakcer-face-lift.js
Last active December 16, 2020 22:56
Google Santa Tracker - Face lift
// ==UserScript==
// @name Google Santa Tracker fun.
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Replacing elves with your friends! If you want to add your own friends, just populate the `newElves` array.
// @author anevins12
// @match https://maps.gstatic.com/mapfiles/santatracker/v202012090457/*
// @grant none
// ==/UserScript==
@anevins12
anevins12 / pa11y-ci-reporter-custom-filter.js
Last active July 21, 2020 08:03
Pa11y-ci Reporter custom filter
// Assumes jQuery is already defined on the page.
// Try a tampermonnkey script to define jQuery like this: https://gist.github.com/anevins12/e394718db5af815da397e6702d552c3a
(function() {
const invalidErrors = ['Set these yourself: Use the contents of the H2 element that is in the individal error page'];
const $listingErrors = $('.page');
$listingErrors.each(function() {
const $listingError = $(this);
const $listingErrorCount = $listingError.find('.counts .error');
@anevins12
anevins12 / tampermonkey-add-jquery-to-page.js
Created July 20, 2020 16:29
Tampermonkey: Add jQuery to page
// ==UserScript==
// @name Pa11y filter
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match **Fill this in***
// @grant none
// ==/UserScript==
@anevins12
anevins12 / slack-cool-down-replies.js
Last active July 8, 2020 11:07
Slack.com: Stop yourself from replying immediately to threads
// ==UserScript==
// @name Slack cool-down
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Have the urge to respond immediately to a new thread? Hit the cool-down button until you're ready.
// @author anevins12
// @match https://app.slack.com/*
// @grant none
// ==/UserScript==
@anevins12
anevins12 / stop-accessibe-tampering-with-wave.js
Last active June 17, 2020 11:48
Bookmarklet: Stop Accessibe Tampering with WAVE
javascript:(function()%7BEJS%5B%22each%22%5D(%5B%22accessiBe%22%2C%22Nagishly%22%2C%22acsbap%22%2C%22acsbJS%22%2C%22acsb%22%5D%2Cfunction()%7Bif(typeof%20window%5Bthis%5D!%3D%3D%22undefined%22)%7Bwindow%5Bthis%5D%3Dvoid%200%7D%7D)%7D)()
@anevins12
anevins12 / asda-delivery.json
Created May 19, 2020 08:46
example asda api result for delivery slots
{
"data":{
"service_address":{
"is_apo_fpo":false,
"is_po_box":false,
"country":null,
"latitude":"51.5050115",
"longitude":"-2.6188406",
"city":null,
"postcode":"BS107BP",
@anevins12
anevins12 / deque-screen-reader-shortcuts-quiz.js
Last active April 13, 2020 16:54
Bookmarklet: Deque screen reader shortcuts quiz
javascript:(() => {$('.data.shortcuts tr').each((i, v) => { const inputLabel = $('[scope="row"]', v).text(); const $input = `<input aria-label="${inputLabel}" type="text" />`; $('td:last-child', v).html($input); })})();
@anevins12
anevins12 / automated-a11y-testing-tools.json
Created April 7, 2020 20:57
Automated A11y testing tools
{"id":"c2a827f4-2dcd-45df-80f5-dd35860bb705","title":"Automated A11y testing","mindmap":{"root":{"id":"b53b101f-6367-4db5-af8b-695ce40459ee","parentId":null,"text":{"caption":"Automated A11y testing"},"children":[{"id":"63284652-fdb8-4d95-8dc3-217a317ab991","parentId":"b53b101f-6367-4db5-af8b-695ce40459ee","text":{"caption":"Browser addons"},"children":[{"id":"96105f9d-2e39-4d58-a8b7-99ae9d771ad4","parentId":"63284652-fdb8-4d95-8dc3-217a317ab991","text":{"caption":"axe"},"children":[]},{"id":"329a2842-80f1-4f5b-8158-c2405d07ea8e","parentId":"63284652-fdb8-4d95-8dc3-217a317ab991","text":{"caption":"Web developer toolbar"},"children":[]},{"id":"e2cccc6e-f220-4e1b-ba45-8b6ebeadaca3","parentId":"63284652-fdb8-4d95-8dc3-217a317ab991","text":{"caption":"NoCoffee"},"children":[]},{"id":"c2a9c45b-51eb-438e-a16b-277f363789fa","parentId":"63284652-fdb8-4d95-8dc3-217a317ab991","text":{"caption":"Google accessibility developer tools"},"children":[]},{"id":"0a4ad8b3-e9ef-4c3c-aaaa-23bf43ff1037","parentId":"63284652-fdb8-4