// ==UserScript==
// @name Tiberium Alliances URL Bug Fix
// @description Simple solution to the ancient URL bug that EA has been unable or unwilling to fix.
// @namespace URL_Bug_Fix
// @include https://*.alliances.commandandconquer.com/*/index.aspx*
// @version 1.1.1
// ==/UserScript==
(function () {
var URL_Bug_Fix_main = function () {
console.log('URL_Bug_Fix loaded');
function CreateURL_Bug_Fix() {
var bW = "#0d77bb",
bV = "tnf:[base]xxx:yyy[/base]",
bU = '',
bT = ' onClick="webfrontend.gui.UtilView.centerCoordinatesOnRegionViewWindow(parseInt(\'$1\', 10), parseInt(\'$2\', 10));">$1:$2',
bS = "tnf:link to base profile",
bR = "[/u]",
bQ = "[/stadt]",
bP = "[/i]",
bO = '[b]",
bu = '$1[coords]$2:$3[/coords]',
bt = "ie",
bs = "[base]",
br = "tnf: [url]http://...[/url]",
bq = "[coords]",
bp = "webfrontend.gui.util.BBCode",
bo = "tnf:quote",
bn = "[quote]",
bm = ' style="cursor: pointer; color: ',
ce = "U",
cf = "tnf: displays quoted text",
cc = "tnf:link to player profile",
cd = "[i]",
ca = "[/alliance]",
cb = "[s]",
bX = '\uffff',
bY = "tnf:[player]playername[/player]",
cg = "$1",
ch = " [i]",
bG = "tnf:player",
bF = '"',
bI = "tnf:bold text",
bH = "tnf:link",
bK = "[/allianz]",
bJ = "[alliance]",
bM = '$1[report]$2:$3[/report]',
bL = "firefox",
bE = "tnf:italic text",
bD = ' onClick="webfrontend.gui.util.BBCode.openCityProfile(parseInt(\'$1\', 10), parseInt(\'$2\', 10));">$1:$2',
a = "[/url]",
b = "tnf: displays quoted text with player name",
c = ' onClick="webfrontend.gui.util.BBCode.openCityProfile($1, $2);">$1:$2',
d = "tnf:coordinate",
f = "[/player]",
g = "tnf:[coords]xxx:yyy:optional text[/coords]",
h = "B",
i = '$3',
Y = "[b]",
R = ' onClick="webfrontend.gui.util.BBCode.openLinkFromInnerHtml(this);">$1',
S = "tnf:said",
T = "[/base]",
U = '\n',
ba = "tnf:alliance",
bb = "tnf:the following bb-codes are supported",
E = " ",
D = "tnf:underlined text",
C = "[/u][hr]