NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Runetiera Improvements // @version 0.1 // @description Unblur info on runetiera, and scroll to bottom, when new pick becomes available // @license MIT // @author PaulDaPigeon // @match https://runetiera.com/draft-viewer* // @grant none // @updateURL https://openuserjs.org/meta/PaulDaPigeon/Runetiera_Improvements.meta.js // ==/UserScript== (function() { 'use strict'; unblur(); scrollToBottomOnUpdate(); } )(); function unblur() { var style = document.createElement('style'); style.innerText = '.blur {filter: none !important;}'; document.getElementsByTagName('HEAD')[0].appendChild(style); const targetNode = document.getElementById('some-id'); } function scrollToBottomOnUpdate() { const targetNode = document.getElementById('pick-history'); const config = { childList: true }; const callback = function(mutationsList, observer) { window.scrollTo(0,document.body.scrollHeight); }; const observer = new MutationObserver(callback); observer.observe(targetNode, config); }