Skip to content

Instantly share code, notes, and snippets.

@FiXato
Created May 14, 2021 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FiXato/d2f7e198f24e07090045da503f47e923 to your computer and use it in GitHub Desktop.
Save FiXato/d2f7e198f24e07090045da503f47e923 to your computer and use it in GitHub Desktop.
UserScripts for Outline Demoparty
// ==UserScript==
// @name OutlineDemoparty - Events Schedule
// @namespace https://fixato.org
// @version 0.1
// @description Highlight current hour on Outline Demoparty schedule
// @author FiXato
// @match https://outlinedemoparty.nl/events.htm
// @icon https://yt3.ggpht.com/ytc/AAUvwni9hwZW-ca3xpy-72nsG6m4tQ9in4LFNMQgLlXTFQ=s68-c-k-c0x00ffffff-no-rj
// @grant none
// ==/UserScript==
(function() {
'use strict';
var date = new Date();
Array.from(Array.from(document.querySelectorAll('h3')).filter(el => el.textContent.includes('May '+ String(date.getDate())))[0].nextSibling.querySelectorAll('tr > td')).filter(el => el.textContent.includes(date.getHours() + ':'))[0].parentElement.style='background-color: rgba(0,0,0,0.4)';
})();
// ==UserScript==
// @name Outline Demoparty - Voting page
// @namespace https://fixato.org
// @version 0.1
// @description Make the Outline Demoparty voting pages a bit more fluid
// @author FiXato
// @match https://wuhu.outlinedemoparty.nl/*
// @icon https://yt3.ggpht.com/ytc/AAUvwni9hwZW-ca3xpy-72nsG6m4tQ9in4LFNMQgLlXTFQ=s68-c-k-c0x00ffffff-no-rj
// @grant none
// ==/UserScript==
(function() {
'use strict';
document.styleSheets[document.styleSheets.length - 1].insertRule('#container {width: 100%!important}', 0);
document.styleSheets[document.styleSheets.length - 1].insertRule('.entry {margin: 1%!important; width: 30%!important;}', 0);
// Your code here...
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment