Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Tapermonkey script to modify the styling of the Fablab Leuven website
// ==UserScript==
// @name FabLab Leuven - Change current page style
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author Ward Delabastita
// @match https://www.fablab-leuven.be/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
// make the current pager stand out
var element = document.getElementsByClassName("pager-current")[0]
if (element) {
element.style.backgroundColor = "red";
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment