Code Monkey home page Code Monkey logo

octordlereformat's Introduction

Octordle Reformatter

Octordle.com is 8 games of Wordle at once. For some odd reason, even on desktop, it has a max width of 550px, which means you have to scroll up and down to see all 8 games. This is a simple script to see all 8 games on one screen on desktop. Major limitation though, when you resize the screen (which includes closing the console), Octordle tries to redraw all the boxes. So just run the script and play the game, don't close the console or resize.

Steps to Use

  1. Start a game of Octordle.com on a desktop computer
  2. Pull up your browser's developer console. CTRL+Shift+J on Chrome/Windows, see others here.
  3. Resize the console as small as possible.
  4. Paste the code below into the console and click enter.
  5. Do NOT resize the browser or close the console.
  6. If you do resize the browser, just hit refresh and start all over. Your progress is saved, don't worry!
  7. Enjoy the game!

Code

document.getElementById("body").style.removeProperty('max-width');
document.getElementById("body").style.removeProperty('display');
document.getElementById("box-holder-1").style.width = '25%';
document.getElementById("box-holder-2").style.width = '25%';
document.getElementById("box-holder-3").style.width = '25%';
document.getElementById("box-holder-4").style.width = '25%';
document.getElementById("box-holder-5").style.width = '25%';
document.getElementById("box-holder-6").style.width = '25%';
document.getElementById("box-holder-7").style.width = '25%';
document.getElementById("box-holder-8").style.width = '25%';

document.getElementById("box-holder-1").style.padding = '18px';
document.getElementById("box-holder-2").style.padding = '18px';
document.getElementById("box-holder-3").style.padding = '18px';
document.getElementById("box-holder-4").style.padding = '18px';
document.getElementById("box-holder-5").style.padding = '18px';
document.getElementById("box-holder-6").style.padding = '18px';
document.getElementById("box-holder-7").style.padding = '18px';
document.getElementById("box-holder-8").style.padding = '18px';

const boxItems = document.querySelectorAll(".table_guesses td.box.button");

boxItems.forEach(function (userItem) {
  userItem.style.width = '10%';
});

var div = document.querySelector('#box-holder-3');
div = div.parentNode.removeChild(div);
row = document.querySelector('#box-holder-1').parentNode;
row.insertAdjacentHTML('beforeend', div.outerHTML);

var div = document.querySelector('#box-holder-4');
div = div.parentNode.removeChild(div);
row = document.querySelector('#box-holder-1').parentNode;
row.insertAdjacentHTML('beforeend', div.outerHTML);

var div = document.querySelector('#box-holder-7');
div = div.parentNode.removeChild(div);
row = document.querySelector('#box-holder-5').parentNode;
row.insertAdjacentHTML('beforeend', div.outerHTML);

var div = document.querySelector('#box-holder-8');
div = div.parentNode.removeChild(div);
row = document.querySelector('#box-holder-5').parentNode;
row.insertAdjacentHTML('beforeend', div.outerHTML);

// Get rid of empty space between rows
document.querySelector('#box-holder-1').parentNode.parentNode.id = 'uc_tbody';
trs = document.querySelectorAll("#uc_tbody>tr");
trs[6].remove();
trs[5].remove();
trs[3].remove();
trs[2].remove();
trs[1].remove();

YouTube

This code was written for a YouTube audience. Check out a the video here: https://youtu.be/4vmpLEAmCw0

octordlereformat's People

Contributors

ansonlai avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.