Skip to content

Instantly share code, notes, and snippets.

@snaka
Created July 18, 2009 08:21
Show Gist options
  • Save snaka/149474 to your computer and use it in GitHub Desktop.
Save snaka/149474 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name jaro
// @namespace http://d.hatena.ne.jp/snaka72/
// @require http://gist.github.com/raw/3242/9dc0cdee5e975d275c7ab71f581d272eb316674f/dollarX.js
// @include http://www.google.com/*
// @include http://www.google.co.jp/*
// ==/UserScript==
(function() {
const sites = [
/^https?:¥/¥/¥w+¥.designlinkdatabase¥.net/,
];
$X('/html/body/div[4]/div/ol/li/h3/a').forEach(function(ele){
sites.forEach(function(site) {
if (ele.href.match(site)) {
[ele.parentNode, ele.parentNode.parentNode].forEach(function(ele){ with(ele){
style.opacity = '0.3'
}});
}
});
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment