Created
May 14, 2021 18:16
-
-
Save FiXato/d2f7e198f24e07090045da503f47e923 to your computer and use it in GitHub Desktop.
UserScripts for Outline Demoparty
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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)'; | |
})(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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