Created
August 6, 2011 23:10
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nabble removed the evil browser sniffing for Opera, on August 8, 2011.
This User JS is now unnecessary.