Created
January 18, 2019 07:01
-
-
Save nanpuhaha/e90cd2e523857797dfeecb787e3614a9 to your computer and use it in GitHub Desktop.
Userscript
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
// ==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