// ==UserScript==
// @name Titleprotector
// @author Arve Bersvendsen 
// @namespace http://virtuelvis.com/ 
// @version 1.0.2
// @description  Protects the application titlebar from being altered
//			by JavaScript.
// @ujs:category general: enhancements
// @ujs:published 2005-09-04 22:00
// @ujs:modified 2005-09-19 09:19
// @ujs:documentation http://userjs.org/scripts/general/enhancements/titleprotector 
// @ujs:download http://userjs.org/scripts/download/general/enhancements/titleprotector.js
// ==/UserScript==


/* 
 * This script is granted to the Public Domain
 */

window.opera.addEventListener("BeforeScript",function(e){
  e.element.text = e.element.text.replace(/document\.title\s*(\+?=)/ig,'document.throwawaytitle$1');
},false);