Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.