Created
May 1, 2018 05:12
-
-
Save uzzu/bba048dec84e8350d971c7eecd3bae6c to your computer and use it in GitHub Desktop.
remove instructors, memos, and reviews from lesson history
This file contains 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 photos = document.querySelectorAll('#contents > section:nth-child(6) > div > div > div.instructorPhoto > a > img'); | |
photos.forEach(function(e) { e.parentElement.removeChild(e); }); | |
const memos = document.querySelectorAll('#contents > section:nth-child(6) > div > div > div.lessonDetail > p.memo'); | |
memos.forEach(function(e) { e.parentElement.removeChild(e); }); | |
const reviews = document.querySelectorAll('#contents > section:nth-child(6) > div > div > div.lessonDetail > p:nth-child(2)'); | |
reviews.forEach(function(e) { e.parentElement.removeChild(e); }); | |
const instructors = $x('//*[@id="contents"]/section[5]/div/div/div[2]/p/text()[3]'); | |
instructors.forEach(function(e) { e.replaceWith(""); }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment