// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @match thefanfictionforum.net/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
$('div.bam_announcements').remove();
var badFrameSrcSnips = [
//-- These are case-sensitive
"https://forums.icyboards.net/icyboards_ad.php?s=728h"
];
for (var J in badFrameSrcSnips) {
var srcSnippet = badFrameSrcSnips[J];
waitForKeyElements (
"iframe[src*='" + srcSnippet + "']", removeBadDiv
);
}
function removeBadDiv (jNode) {
//-- Replace the bad div (iframe's parent) with a tame one.
jNode.parent ().remove();
}
})();