Skip to content

Instantly share code, notes, and snippets.

@uzzu
Created May 1, 2018 05:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uzzu/bba048dec84e8350d971c7eecd3bae6c to your computer and use it in GitHub Desktop.
Save uzzu/bba048dec84e8350d971c7eecd3bae6c to your computer and use it in GitHub Desktop.
remove instructors, memos, and reviews from lesson history
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