Created
June 5, 2019 09:28
-
-
Save slowpoke-lizard/13171945f47ea286a0873277e0e01bf7 to your computer and use it in GitHub Desktop.
This file contains 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
function createElementFromHTML(htmlString) { | |
var div = document.createElement('div'); | |
div.innerHTML = htmlString.trim(); | |
// Change this to div.childNodes to support multiple top-level nodes | |
return div.firstChild; | |
} | |
function addCommentLine() { | |
var el = createElementFromHTML('<textarea id="decKomment" rows="1" placeholder="by Bepoest" style="background-color: rgba(0,0,0,0); border: 0px; color: rgb(204, 204, 204); font-family: Fira; font-size: 1.1rem; margin: 0px; width: 95%; z-index: 10;"></textarea>'); | |
var referenceNode = document.querySelector('#fLH-topStats'); | |
referenceNode.after(el); | |
} | |
// Always have Neutral Cards in the list | |
$(document.body).bind("click", function(e) { | |
$("#DB-cardsNeutral").css("display", "block"); | |
}); | |
addCommentLine(); | |
$("[data-remodal-id='modalHorList']").attr('onmouseenter', '$("#decKomment").focus(); $(".fLH-spellArtCont").attr("style", "")') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment