Skip to content

Instantly share code, notes, and snippets.

@killroy42
Created March 4, 2022 11:49
Show Gist options
  • Save killroy42/aeff534370f61598085cdf6f81d00ba1 to your computer and use it in GitHub Desktop.
Save killroy42/aeff534370f61598085cdf6f81d00ba1 to your computer and use it in GitHub Desktop.
Puzzle Bookmarklets for sudokupad.app
Randomly generated Classic, X-Sudoku and Windoku (and mixed) puzzles from a twitter bot:
Puzzle source:
https://twitter.com/sudokuSolverNL
Bookmarklet:
javascript:(function()%7B((%5B%2Cv%2Cp%5D)%3D>window.open('%2F%2Fsudokupad.app%2Fscf'%2Bp.replace(%2F.0%7B0%2C5%7D%2Fg%2Cd%3D>String.fromCharCode((d%3D%2Bd%5B0%5D%2B10*d.length)%2B(d<20%3F38%3Ad<46%3F45%3A51)))%2B(%7Bxsudoku%3A'x'%2Cfoursquare%3A'w'%2Cx4square%3A'wx'%7D%5Bv%5D%7C%7C'')))('undefined'!%3Dtypeof angular%3F((%7Bpuzzle%3Ap%2Cvariant%3Av%7D)%3D>%5B%2Cv%2Cp%5D)(angular.element(document.body).scope().queryParams)%3A%5B...document.querySelectorAll('a%5Btarget%3D"_blank"%5D')%5D.map(a%3D>a.textContent.match(%2Fpuzzle%5C%2F(%3F%3A(%5B%5E%5C%2F%5D%2B)%5C%2F)%3F(%5B0-9%5D%2B)%2F)).filter(_%3D>_)%5B0%5D)%7D)()
Description:
Bookmarklet will find the first tweet on the page with puzzle data and open it on sudokuepad.app. It will also open puzzles on https://sudokusolver.nl/
@craigahanson
Copy link

Thanks for this Sven!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment