Skip to content

Instantly share code, notes, and snippets.

@slowpoke-lizard
Created June 5, 2019 09:28
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 slowpoke-lizard/13171945f47ea286a0873277e0e01bf7 to your computer and use it in GitHub Desktop.
Save slowpoke-lizard/13171945f47ea286a0873277e0e01bf7 to your computer and use it in GitHub Desktop.
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