Last active
September 22, 2019 08:18
-
-
Save ramesaliyev/7c864a16b4e349b6cb80a2a8aef8a121 to your computer and use it in GitHub Desktop.
Wikiwand remove everything other than content
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const rmel = selector => { | |
try { | |
for (el of document.querySelectorAll(selector)) { | |
el.parentElement.removeChild(el); | |
} | |
} catch (e) { | |
} | |
} | |
const gel = selector => ( | |
document.querySelector(selector) | |
) | |
rmel('#header'); | |
rmel('#toc_wrapper'); | |
rmel('#header'); | |
rmel('#header'); | |
rmel('#read_more'); | |
rmel('.title_icon.disambig-wrapper.unselectable.tooltipstered'); | |
rmel('.title_icon.edit_article.edit_section.tooltip_top.tooltipstered'); | |
rmel('#section_See_also'); | |
rmel('#section_References'); | |
rmel('#section_External_links'); | |
rmel('#section_Bibliography'); | |
rmel('#section_navigation-section'); | |
rmel('.page_copyright'); | |
rmel('.wikiwand_footer'); | |
gel('#content').style.width = '100%'; | |
gel('#article_content_wrapper').style.marginTop = '20px'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment