Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
楽天のメルマガチェックはずし
// ==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');
}
}
Owner

takuo commented Jun 13, 2011

rawクリックでインスコ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment