Skip to content

Instantly share code, notes, and snippets.

@abradley2
Created September 1, 2016 01: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 abradley2/4272c71b57b94bde4e80af9a29d57c4d to your computer and use it in GitHub Desktop.
Save abradley2/4272c71b57b94bde4e80af9a29d57c4d to your computer and use it in GitHub Desktop.
Add this to Greasemonkey, have it active under https://testyourmight.com/*
// ==UserScript==
// @name SpoilerDestroiler_TYM
// @namespace https://github.com/abradley2
// @include https://testyourmight.com/
// @version 1
// @grant none
// ==/UserScript==
$('.titleText').each(function () {
var infoDiv = this.querySelector('.posterDate').querySelector('.forumLink')
if (infoDiv.innerHTML.match('Event Aftermaths')) {
var test = $(this).find('.title').find('a').html('POSSIBLE SPOILER')
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment