Greasy Fork is available in English.

OGame: Shorten messages links

OGame: usefull for some internet connections

// ==UserScript==
// @name OGame: Shorten messages links
// @namespace https://greasyfork.org/users/4668-black-cat
// @description OGame: usefull for some internet connections
// @version 5.4
// @creator Black Cat
// @include http://*.ogame.gameforge.com/game/index.php?page=messages*
// ==/UserScript==

var strFunc = (function(){

	$(document).ajaxSuccess(function(e,xhr,settings){
		if (settings.url.indexOf("page=messages") == -1) return;
		if (settings.data.indexOf("displayPage") == -1) return;

		$("#messageContent td.subject a.overlay").each(function () {
			var link = $(this);
			var href = link.attr("href");
			link.attr("href", href.replace(/&mids=[^&]*/,""));
		});
	});

}).toString();

var script = document.createElement("script");
script.setAttribute("type","text/javascript");
script.text = "(" + strFunc + ")();";
document.body.appendChild(script);