Skip to content

Instantly share code, notes, and snippets.

@yuya-takeyama
Forked from ssig33/rtdake.user.js
Created March 13, 2011 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuya-takeyama/868086 to your computer and use it in GitHub Desktop.
Save yuya-takeyama/868086 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Report RT Dake ni Naru
// @namespace http://ssig33.com/
// @description Destroy RT Igai from Report
// @include http://sinsai.info/ushahidi/admin/reports*
// @include http://ushahidi.localhost/admin/reports*
// ==/UserScript==
for (q = 0; q < 30; q ++) {
var ns = document.getElementsByTagName("tr");
for (i = 0; i < ns.length; i++) {
var node = ns[i];
if(node.class != "foot") {
if (node.innerHTML.match(/詳細をレポート/)) {
} else {
if (node.innerHTML.match(/RT\ /)) {
} else {
node.parentNode.removeChild(node);
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment