Created
June 13, 2011 08:43
-
-
Save takuo/1022477 to your computer and use it in GitHub Desktop.
楽天のメルマガチェックはずし
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
// ==UserScript== | |
// @name Rakuten uncheck news | |
// @namespace http://takuo.jp/ | |
// @description 楽天の購入時メルマガチェックはずし | |
// @match https://*.rakuten.co.jp/* | |
// ==/UserScript== | |
var elems = document.getElementsByTagName("input"); | |
for (var i = 0; i < elems.length; i++) { | |
var elem = elems[i]; | |
if (elem.type == "checkbox" && elem.name.match(/^(newsId|news_?check|rmail_check|shop_rating_check)/)) { | |
elem.removeAttribute('checked'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
rawクリックでインスコ