Last active
August 27, 2016 15:43
-
-
Save kyukyunyorituryo/f34a4f7ae584e6d9a4e988cb61f1127c to your computer and use it in GitHub Desktop.
Kindle Unlimited用に「1-Clickで今すぐ買う」を見えなくする
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
var ku=document.getElementById("borrow-button");//PC用 | |
var kum=document.getElementById("KU_logo_link");//スマホ用 | |
if((ku|| kum) != null){//空なら実行しない | |
var element = document.getElementById("one-click-button"); | |
var node = element.parentNode.parentNode;//親要素の親要素を削除 | |
if(node != null){ | |
node.parentNode.removeChild(node); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment