// ==UserScript==
// @name           Hide Wordpress Visual Editor Tab
// @namespace      http://www.neoegm.com/
// @description    Hides the "Visual" tab from the Wordpress's post/page editor to avoid breaking the HTML code
// @include        http://*/wp-admin/post.php*
// @include        http://*/wp-admin/page.php*
// @include        http://*/wp-admin/post-new.php*
// @include        http://*/wp-admin/page-new.php*
// @version        1.01
// ==/UserScript==

/*************************************************************************************************
Hide Wordpress Visual Editor Tab by NeoEGM

Copyright (C) 2009 Ezequiel Gaston Miravalles

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*************************************************************************************************/

/*************************************************************************************************
Software: Hide Wordpress Visual Editor Tab by NeoEGM
Author: Ezequiel Gaston Miravalles
Website: http://www.neoegm.com/tech/wordpress/how-to-remove-the-visual-tab-from-the-wordpress-post-page-editor/
License: GNU GPL v3 (read above)
*************************************************************************************************/

document.getElementById('edButtonPreview').style.display = "none";
