Skip to content

Instantly share code, notes, and snippets.

@legnoh
Created July 29, 2012 23:16
Show Gist options
  • Save legnoh/3202503 to your computer and use it in GitHub Desktop.
Save legnoh/3202503 to your computer and use it in GitHub Desktop.
Nicochart Improved @ninja
// ==UserScript==
// @name NicoChart Improved
// @namespace http://now.nicochart.jp/*
// @include http://now.nicochart.jp/*
// ==/UserScript==
var tmbs = document.getElementsByClassName('lazy-display');
for (var i = 0; i < tmbs.length; i++) {
var tmb = tmbs[i].parentNode;
tmb.setAttribute('target', '_blank');
tmb.setAttribute('onClick', 'this.parentNode.parentNode.parentNode.style.display = \'none\';');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment