Skip to content

Instantly share code, notes, and snippets.

@Makaze
Created August 10, 2015 22:43
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 Makaze/6101dbfc15afaab6ac94 to your computer and use it in GitHub Desktop.
Save Makaze/6101dbfc15afaab6ac94 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Serenes Forest - Hide 'Favourite Fire Emblem Game' in Miniprofile
// @namespace Makaze
// @description Like it says on the tin.
// @include http://*serenesforest.net/*
// @grant none
// @version 1.0.0
// ==/UserScript==
var i = 0,
j = 0;
function clearProfile() {
for (i = 0; i < document.getElementsByClassName('custom_fields').length; i++) {
var thisf = document.getElementsByClassName('custom_fields')[i];
for (j = 0; j < thisf.getElementsByTagName('li').length; j++) {
if (thisf.getElementsByTagName('li')[j].innerHTML.match(/Favou?rite Fire Emblem/gi)) {
thisf.getElementsByTagName('li')[j].style.display = 'none';
}
}
}
}
clearProfile();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment