Skip to content

Instantly share code, notes, and snippets.

@XP1
Created August 6, 2011 23:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save XP1/1129867 to your computer and use it in GitHub Desktop.
Save XP1/1129867 to your computer and use it in GitHub Desktop.
Fix Nabble: Fix Nabble's frame reloading bug by removing evil browser sniffing for Opera.
// ==UserScript==
// @name Fix Nabble
// @version 1.00
// @description Fix Nabble's frame reloading bug by removing evil browser sniffing for Opera.
// @author XP1 (https://github.com/XP1/)
// @namespace https://gist.github.com/1129867/
// @include http*://nabble.com/*
// @include http*://*.nabble.com/*
// ==/UserScript==
/*jslint browser: true, vars: true, white: true, maxerr: 50, indent: 4 */
(function (opera)
{
"use strict";
opera.addEventListener("BeforeScript", function (userJsEvent)
{
var element = userJsEvent.element;
if (element.src.indexOf("/Javascript.jtp") !== -1)
{
element.text = element.text.replace(/else if \(\$\.browser\.opera\) return document\.documentElement\.clientHeight;/g, "");
}
}, false);
}(window.opera));
@XP1
Copy link
Author

XP1 commented Aug 7, 2011

I posted this user JS in these threads:

Opera and Libre Office's nabble based forums.:
http://my.opera.com/community/forums/topic.dml?id=1067742

Opera Web Browser Problem:
http://nabble-support.1.n2.nabble.com/Opera-Web-Browser-Problem-td5632156.html

@XP1
Copy link
Author

XP1 commented Aug 9, 2011

Nabble removed the evil browser sniffing for Opera, on August 8, 2011.
This User JS is now unnecessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment