Skip to content

Instantly share code, notes, and snippets.

@dragontamer8740
Created March 3, 2018 22:27
Show Gist options
  • Save dragontamer8740/74937f8bc184d43ecbe884f3a71c5e25 to your computer and use it in GitHub Desktop.
Save dragontamer8740/74937f8bc184d43ecbe884f3a71c5e25 to your computer and use it in GitHub Desktop.
Hide crappy gallery comments
// ==UserScript==
// @name hide comments
// @namespace dragontamer8740.hideComments
// @description hide gallery comments on a crappy gallery
// @version 1
// @grant none
// @include http://e-hentai.org/*
// @include https://e-hentai.org/*
// @match http://e-hentai.org/*
// @match https://e-hentai.org/*
// @include http://exhentai.org/*
// @include https://exhentai.org/*
// @match http://exhentai.org/*
// @match https://exhentai.org/*
// ==/UserScript==
var galName=document.getElementById("gn");
/*var galUploader=document.getElementById("gdn");*/
var commentsSection=document.getElementById("cdiv");
/* if it's the crappy gallery */
if(galName.innerHTML.toLowerCase().includes("transmorpher dds") && galName.innerHTML.toLowerCase().includes("banana cream cake"))
{
commentsSection.style.display="none";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment