Leuk, maar wel laat.
Dit had met kerst moeten gebeuren...
toch 4,5/5
Dit had met kerst moeten gebeuren...
toch 4,5/5
Zou je voor thewest ook een soort grafische pakketten kunnen maken?
Volgens Leones zou je er een scriptje voor kunnen maken, Maar dan moet je daar wel verstand van hebben.
// ==UserScript==
// @name Cache
// @namespace lekensteyn@gmail.com
// @description Speed up loading by using one site for resources
// @include http://nl*.the-west.nl/game.php
// @include http://nl*.the-west.nl/forum.php*
// @include http://en*.the-west.net/game.php
// @include http://en*.the-west.net/forum.php*
// @include http://de*.the-west.de/game.php
// @include http://de*.the-west.de/forum.php*
// ==/UserScript==
document.body.style.display = "none";
var head = document.getElementsByTagName("head")[0];
var req_file = location.pathname,
isGame = req_file == "/game.php",
isForum = req_file == "/forum.php",
cacheRoot = "http://de7.the-west.de/",
imagesRoot = cacheRoot + "images/";
function addSS(path, index) {
//GM_addStyle("@import '" + cacheRoot + +path + "';");
document.getElementsByTagName("link")[index].href = cacheRoot + path;
}
if(isGame || isForum) {
addSS("cache/game.css", 0);
}
if(isForum) {
addSS("css/forum.css", 1);
}
var js = document.createElement("script");
js.type = "text/javascript";
js.textContent = (function() {
XHR.prototype.onSuccess = eval("(" +
XHR.prototype.onSuccess.toString().replace(
"responseText",
(function() {
responseText
.replace(/([^/])(images\/)/g, "$1/$2")
.replace(/([^/])(images\\\/)/g, "$1\\/$2")
.replace(/\/images\//g, "http://de7.the-west.de/images/")
.replace(/\\\/images\\\//g, "http:\\/\\/de7.the-west.de\\/images\\/")
}).toString().replace(/function\s*\(\)\s*\{/g, "").replace(/\}$/, "")
) +
")").bind(XHR.prototype);
}).toString();
head.appendChild(js);
js.parentNode.removeChild(js);
document.body.style.display = "";
dan moeten ze toch gewoon wat meer servers kopenDan krijg je net zo iets als bij update 1.30. Servers kunnen het niet bol werken. :hmf:
Sommige mensen weten té veel van computers e.d.....Ik heb ook eens gekeken naar de mogelijkheden van grafische pakketten, maar daarvoor moet veel worden gedaan om het werkend te krijgen.
Oorspronkelijk was mijn idee om de paden naar een externe server te zetten, om bronnen efficienter te cachen.
Voor degenen die hiermee verder willen gaan, hier was ik mee begonnen:
Ik was ermee gestopt omdat het vervangen van de scripts moest gebeuren voordat de pagina geladen is, en ik geen zin had om een Firefox extensie te maken. Met privoxy zou dit wel moeten lukken, maar dat vereist een installatie en configuratie van een proxyserver.Code:// ==UserScript== // @name Cache // @namespace lekensteyn@gmail.com // @description Speed up loading by using one site for resources // @include http://nl*.the-west.nl/game.php // @include http://nl*.the-west.nl/forum.php* // @include http://en*.the-west.net/game.php // @include http://en*.the-west.net/forum.php* // @include http://de*.the-west.de/game.php // @include http://de*.the-west.de/forum.php* // ==/UserScript== document.body.style.display = "none"; var head = document.getElementsByTagName("head")[0]; var req_file = location.pathname, isGame = req_file == "/game.php", isForum = req_file == "/forum.php", cacheRoot = "http://de7.the-west.de/", imagesRoot = cacheRoot + "images/"; function addSS(path, index) { //GM_addStyle("@import '" + cacheRoot + +path + "';"); document.getElementsByTagName("link")[index].href = cacheRoot + path; } if(isGame || isForum) { addSS("cache/game.css", 0); } if(isForum) { addSS("css/forum.css", 1); } var js = document.createElement("script"); js.type = "text/javascript"; js.textContent = (function() { XHR.prototype.onSuccess = eval("(" + XHR.prototype.onSuccess.toString().replace( "responseText", (function() { responseText .replace(/([^/])(images\/)/g, "$1/$2") .replace(/([^/])(images\\\/)/g, "$1\\/$2") .replace(/\/images\//g, "http://de7.the-west.de/images/") .replace(/\\\/images\\\//g, "http:\\/\\/de7.the-west.de\\/images\\/") }).toString().replace(/function\s*\(\)\s*\{/g, "").replace(/\}$/, "") ) + ")").bind(XHR.prototype); }).toString(); head.appendChild(js); js.parentNode.removeChild(js); document.body.style.display = "";