User:Kxykzz

From Wikipedia, the free encyclopedia

I created a JavaScript bookmarklet to remove the sidebar on a Wikipedia page.

  1. Create a new bookmark in your browser.
  2. Paste the code below in the address.
  3. Visit a Wikipedia page.
  4. Click the bookmark.

The sidebar on the left will be removed.

The effect is temporary and will go away if you reload or visit another page. That also means you have to click the button each time you visit a page on Wikipedia.

I use this to make the articles easier to read.

Since every browser supports JavaScript and bookmarks, you can use it anywhere without modifying the browser.

javascript:(function(){var element=document.getElementById("mw-panel");element.parentNode.removeChild(element);document.getElementById("content").style.marginLeft="0px";})();