Skip to content

Instantly share code, notes, and snippets.

@takuo
Created June 13, 2011 08:43
Show Gist options
  • Save takuo/1022477 to your computer and use it in GitHub Desktop.
Save takuo/1022477 to your computer and use it in GitHub Desktop.
楽天のメルマガチェックはずし
// ==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');
}
}
@takuo
Copy link
Author

takuo commented Jun 13, 2011

rawクリックでインスコ

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