Skip to content

Instantly share code, notes, and snippets.

@nanpuhaha
Created January 18, 2019 07:01
Show Gist options
  • Save nanpuhaha/e90cd2e523857797dfeecb787e3614a9 to your computer and use it in GitHub Desktop.
Save nanpuhaha/e90cd2e523857797dfeecb787e3614a9 to your computer and use it in GitHub Desktop.
Userscript
// ==UserScript==
// @name Danawa Ad Clean
// @namespace http://prod.danawa.com/
// @version 0.1
// @description Make Danawa clean from the Ads
// @author nanpuhaha
// @match http://prod.danawa.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
document.getElementsByClassName("product_ad_banner line_1")[0].remove();
//document.querySelector(".product_ad_banner.line_1").remove();
document.querySelector(".danawa_gnb").remove();
document.querySelector("#danawa_footer").remove();
document.querySelector("#ebayPowerClickBottomArea").remove();
document.querySelector("#brandHallArea").remove();
var adreader = document.querySelectorAll(".main_ad_prodlist");
for (let i = adreader.length; i > 0; i--) {
adreader[i-1].remove();
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment