User Tools

Site Tools


z:travian:analyzer_bookmarklet

Travian Analyzer Bookmarklet

Installation

First, save a bookmark with title “Analyze” and the location

javascript:top.location.href=((String(window.getSelection()).length>0)?'http://travian.ws/analyser.pl?s=de7&q='+window.getSelection():top.location.href.replace(/http:\/\/welt7\.travian\.de\/(spieler|allianz)\.php\?/,'http://travian.ws/analyser.pl?s=de7&'))

Now, update the bookmark and replace “welt7.travian.de” with your Travian server address and “travian.ws/analyser.pl?s=de7” with your Travian Analyzer address.

Usage

  • If you are viewing a player, eg. http://welt7.travian.de/spieler.php?uid=1, then click “Analyze” and your browser switches to the player in the Analyzer.
  • Same for allies.
  • If you mark some text on the website, eg. a name of a village and click on “Analyze”, then the browser will search for this text in the Analyzer.

Source

And here is the code again, in a more readable way:

javascript:
top.location.href=(
  (String(window.getSelection()).length>0)
  ?
  'http://travian.ws/analyser.pl?s=de7&q='+window.getSelection()
  :
  top.location.href.replace(/http:\/\/welt7\.travian\.de\/(spieler|allianz)\.php\?/,'http://travian.ws/analyser.pl?s=de7&')
)
z/travian/analyzer_bookmarklet.txt · Last modified: 2013-02-04 23:18 (external edit)