I write this script & it is worked success. this script replace 7 files's address with my addresses (on localhost) just change "allow from 127.0.0.1" to "allow from all" in .htaccess file on home directory of Apache Server
// Travian Speed-Up user script // version 1.0.0 BETA! // 2009-08-26 // Copyright (c) 2009, Behhnam Bakhshy // Released under the GPL license // http://www.gnu.org/copyleft/gpl.html // // -------------------------------------------------------------------- // // This is a Greasemonkey user script. To install it, you need // Greasemonkey 0.3 or later: http://greasemonkey.mozdev.org/ // Then restart Firefox and revisit this script. // Under Tools, there will be a new menu item to "Install User Script". // Accept the default configuration and install. // // To uninstall, go to Tools/Manage User Scripts, // select "Travian Speed-Up (ir1)", and click Uninstall. // // -------------------------------------------------------------------- // // ==UserScript== // @name Travian Speed-Up [abbkbehnam] // @namespace http://speedtorrent.co.cc/ // @description script for speed up travian on loading pages. // @include http://*.travian.ir/*.php* // @include http://*.travian.ir/ // @include http://localhost/*.php* // @include http://localhost/ // ==/UserScript== function x() { document.getElementsByTagName("head") [0].innerHTML=document.getElementsByTagName("head") [0].innerHTML.replace('gpack/travian_default/lang/ir/ compact.css','http://localhost/travian/files/gpack/travian_default/ lang/ir/compact.css').replace('gpack/travian_default/lang/ir/ lang.css','http://localhost/travian/files/gpack/travian_default/lang/ ir/lang.css').replace('mt-core.js','http://localhost/travian/files/mt- core.js').replace('mt-more.js','http://localhost/travian/files/mt- more.js').replace('unx.js','http://localhost/travian/files/ unx.js').replace('new.js','http://localhost/travian/files/ new.js').replace('mt-full.js','http://localhost/travian/files/mt- full.js'); } x(); --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en -~----------~----~----~----~------~----~------~--~---
