This guide will remain archived. The original title of this thread was "Instructions on how to permanently remove ads, as well as the new discord widget, from duelingbook's main menu".
Duelingbook recently got updated causing a new discord widget to be added to the main menu.
Not sure what made Xteven think adding this was a good idea, especially since things like these can slow down a machine. The more unnecessary things a computer has to load and render, the more it slows down the computer. It's the reason websites filled with ads tend to run very slowly. https://www.quora.com/Are-all-those-computer-ads-slowing-down-our-computers-If-yes-why
At least I'm not the only one who isn't a fan of this.
For this tutorial, I won't be using javascript. Instead I'll be using an extension called uBlock Origin.
https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en
Firefox users should use this link instead: https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/
To get this extension for your browser, click on the "Add to Chrome" button (or the "Add to Firefox" button if you're using Firefox), and if it asks you if you're sure you want to get it, choose "Add extension" (if you're on Firefox, choose "Add").
Then the extension will be added to your browser.
Once the extension is added to your browser, right click on the discord widget and click "Block element..."
Look for where it says ###widget.revamped.selectable and click on that.
If done correctly, the discord widget should disappear permanently, even if you refresh the page.
To bring back the discord widget, you can do one of 2 things. The first is that you can right click on the uBlock Origin icon and choose the option to remove the uBlock Origin extension from your browser, then refresh the duelinbook page.
The second way is to click on the uBlock Origin icon, then click on the little 3 gears to open up the settings, then go to "My Filters" and remove "www.duelingbook.com##.revamped.selectable" from the list, then click "Apply Changes" and refresh the duelingbook page.
uBlock Origin should also automatically remove the ads from duelingbook for you when you install that extension and refresh the duelingbook page.
Now you don't have to worry about these unnecessary things slowing down your machine.