NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name sudoku-knacker.de exporter // @namespace https://www.sudoku-knacker.de // @version 0.12 // @description You can export Sudokus from sudoku-knacker.de // @author Ingo // @match https://www.sudoku-knacker.de/* // @grant none // @license MIT // ==/UserScript== setInterval(function () { lookup() }, 5000) var sudokufieldcell = "waiting for data"; var node = document.createElement("P"); var textnode = document.createTextNode(sudokufieldcell); node.appendChild(textnode); node.setAttribute("id", "bitte-kopieren"); document.getElementsByClassName("d-print-none")[16].appendChild(node); lookup(); function lookup() { var i; sudokufieldcell = ""; for (i = 1; i <= 81; i++) { if (document.getElementById("sudoku-field-cell-" + [i]).textContent >= 1 && document.getElementById("sudoku-field-cell-" + [i]).textContent <= 9) { sudokufieldcell += document.getElementById("sudoku-field-cell-" + [i]).textContent; } else { sudokufieldcell += "."; } } sudokufieldcell = sudokufieldcell.replaceAll(' ', ''); document.getElementById("bitte-kopieren").textContent = sudokufieldcell; }