Created
August 10, 2015 22:43
-
-
Save Makaze/6101dbfc15afaab6ac94 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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