I am making a GreaseMonkey script for Wikipedia. Here is the code I am using:
// ==UserScript==
// @name wikipedia
// @namespace wikipedia
// @include http://es.wikipedia.org/wiki/*
// @version 1
// @grant GM_addStyle
// @require http://code.jquery.com/jquery.min.js
// ==/UserScript==
$(document).ready(function(){
$("#mw-panel").remove();
$("#localNotice").remove();
$("#mw-head").remove();
$("#mw-head-base").remove();
$("#mw-page-base").remove();
$("#footer").remove();
$("span[class=\"editsection\"]").remove();
$("#mw-articlefeedback").remove();
$("#content").css("margin-top", "0px");
$("#content").css("margin-left", "0px");
$("#content").css("padding", "0px");
$("body").css("font-family", "Droid Sans");
});
This works fine, but this line does not have the desired effect, which is remove the articles feedback dialog.
$("#mw-articlefeedback").remove();
Why does this not work?