Created
January 30, 2017 10:12
-
-
Save sandervd/c02632351ea806e52a12d50c7801124e to your computer and use it in GitHub Desktop.
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 Fosdem | |
// @namespace sandervandooren-fosdem.org | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
var css = document.createElement('style'); | |
css.type = 'text/css'; | |
css.innerHTML = '.timetable tbody td.event-notgoing {background-color: !important white;}'; | |
document.body.appendChild(css); | |
var toSee = [ | |
'https://fosdem.org/2017/schedule/event/metricsapplicationlog/', | |
'https://fosdem.org/2017/schedule/event/ghost/', | |
'https://fosdem.org/2017/schedule/event/honeypotmysql/', | |
'https://fosdem.org/2017/schedule/event/mysql_proxy_war/', | |
'https://fosdem.org/2017/schedule/event/proxysqldatamasking/', | |
'https://fosdem.org/2017/schedule/event/painless_mysql_ha/', | |
'https://fosdem.org/2017/schedule/event/mariadb_cte/', | |
'https://fosdem.org/2017/schedule/event/graph_drupal_cms_neo4j/', | |
'https://fosdem.org/2017/schedule/event/graph_postgres_graphdb/', | |
'https://fosdem.org/2017/schedule/event/graph_incremental_queries_open_cypher/', | |
'https://fosdem.org/2017/schedule/event/iot_opensmartgrid/', | |
'https://fosdem.org/2017/schedule/event/graph_structural_patterns/', | |
'https://fosdem.org/2017/schedule/event/building_a_distro_with_musl_libc/', | |
'https://fosdem.org/2017/schedule/event/mozilla_http2_whats_next/', | |
'https://fosdem.org/2017/schedule/event/iaas_qemintapi/', | |
'https://fosdem.org/2017/schedule/event/mozilla_copyright_campaign_europe/', | |
'https://fosdem.org/2017/schedule/event/mozilla_introduction_aframe/', | |
'https://fosdem.org/2017/schedule/event/mozilla_devtools_deep_dive/', | |
'https://fosdem.org/2017/schedule/event/geo_semantic/', | |
'https://fosdem.org/2017/schedule/event/desktop_security/', | |
'https://fosdem.org/2017/schedule/event/linux_desktop_versus_windows10/', | |
'https://fosdem.org/2017/schedule/event/monolithtosoa/', | |
'https://fosdem.org/2017/schedule/event/citybikes/', | |
'https://fosdem.org/2017/schedule/event/password_keeper/', | |
'https://fosdem.org/2017/schedule/event/safe_internet/', | |
'https://fosdem.org/2017/schedule/event/declarative_pipeline/', | |
'https://fosdem.org/2017/schedule/event/containers_for_building_and_testing/', | |
'https://fosdem.org/2017/schedule/event/osd_accessibility_in_os/', | |
'https://fosdem.org/2017/schedule/event/desktops_free_and_open_source_in_european_public_administrations/', | |
'https://fosdem.org/2017/schedule/event/om_kaitai/', | |
]; | |
var list = document.getElementsByClassName('event'); | |
for (var item of list) { | |
var link = item.getElementsByTagName('a'); | |
var href = link.item(0).href; | |
if (toSee.indexOf(href) != - 1) { | |
item.classList.add('event-going'); | |
} | |
else { | |
item.classList.add('event-notgoing'); | |
for (var i = 1; i < 11; i++) { | |
item.classList.remove('c' + i); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment