Skip to content

Instantly share code, notes, and snippets.

View slowpoke-lizard's full-sized avatar

slowpoke-lizard

View GitHub Profile
#DB-cardSelector {
zoom: 75%;
}
#DB-fakeCardListH {
background-color: #058;
background-image: url("/images/bgs/prophe.jpg");
background-blend-mode: multiply;
background-size: 136%;
background-position-x: right;
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>');
#!/usr/bin/env python
# time python pwb.py scripts/pagefromfile.py -notitle -force -file:/home/fgombault/Sync/duelyst/duelyst-api/wiki_articles.txt
import json
import re
def getCardImageName(p):
return p['name'].replace(" ", "_")
$(function () {
var confirmObserver = new MutationObserver(function (mutations) {
// Auto click OK on confirmation dialogs
if ($('.confirm-dialog').is(':visible')) {
$('.confirm-dialog').click();
return;
}
// Auto click Got It on Crafting Rewards dialogs
if ($('.modal-title:contains("Crafting Rewards")').is(':visible')) {
$('.cancel-dialog').click();