If you cut and paste the code below into the address field of a browser window opened to the Iron Sudoku website and press return it will run a script that fills in the little green numbers of the puzzle. You can create a bookmark in your browser and put the code below into the URL field of the bookmark. Then you can just use your new bookmark rather than cutting and pasting this code every time.

From most browsers: left click this link (Iron Sudoku Auto-Green Script) and drag it to your bookmark toolbar. If that doesn't work you can use the code below to manually create a bookmark.

Bookmark Code:

javascript:var kMax=1;for(i=1;i<10;i++){var lMax=1;if(i==kMax)kMax+=3;for(j=1;j<10;j++){if(j==lMax)lMax+=3;if(grid[i][j].value==''){ClearTinySquares(i,j);for(k=1;k<10;k++)grid[i][j]['mini'][k]=1;for(k=1;k<10;k++){var tmp=grid[i][k].value;if(tmp!='')grid[i][j]['mini'][tmp]=0;tmp=grid[k][j].value;if(tmp!='')grid[i][j]['mini'][tmp]=0}for(k=kMax-3;k<kMax;k++){for(l=lMax-3;l<lMax;l++){var tmp=grid[k][l].value;if(tmp!='')grid[i][j]['mini'][tmp]=0}}}}}PopulatePuzzle(grid);

After you cut and paste the script above into the URL field of your browser’s bookmark properties check to see that the URL begins with “javascript:”. For security reasons most browsers strip the javascript specifier from cut and paste strings.

Last updated: Wednesday, March 02, 2016 04:38:20 PM