UbiCollections

Highlight collections on the map

< Feedback on UbiCollections

Review: Good - script works

§
Posted: 2017-03-31

UbiCollections v1.8 (auto detect)


// ==UserScript==
// @name           UbiCollections
// @namespace      ubiCollections
// @description    Highlight collections on the map
// @author         Sin aka SirriS
// @version        1.8

// @grant          GM_xmlhttpRequest
// @grant          unsafeWindow

// @include        http://www.tsotesting.com/en/play
// @include        http://www.thesettlersonline.com.br/pt/jogar
// @include        http://www.thesettlersonline.com/en/play
// @include        http://www.thesettlersonline.net/en/play
// @include        http://www.thesettlersonline.fr/fr/jouer
// @include        http://thesettlersonline.cz/cs/play
// @include        http://www.diesiedleronline.de/de/spielen
// @include        http://www.thesettlersonline.gr/el/play
// @include        http://www.thesettlersonline.it/it/gioca
// @include        http://www.juego-thesettlersonline.com/es/jugar
// @include        http://www.thesettlersonline.nl/nl/play
// @include        http://www.thesettlersonline.pl/pl/graj
// @include        http://www.thesettlersonline.ro/ro/play
// @include        http://www.thesettlersonline.ru/ru/play
// @include        http://www.thesettlersonline.es/es/jugar
// @include        http://ru.anno-online.com/ru/play

// ==/UserScript==

(function(d,$){(function(unsafeWindow,s,i){return(d.querySelector('body').appendChild((s.text='window'+i+'=true',s)),(typeof(unsafeWindow)=='undefined'||!unsafeWindow[i])?((window[i])?$():$()):$())})(this.unsafeWindow,d.createElement('script'),('t'+Math.random()+ +(new Date())).replace(/\./g,''))})(document,function(){
    GM_xmlhttpRequest({method:'GET',url:'http://127.0.0.1:9000/crossdomain.xml',synchronous:false,timeout:1*1000,onload:function(response){(function(_,v){
      with(document.getElementsByName((_.indexOf('anno-online')!=-1)?'AO1404':'SWMMO')[0])(setAttribute(v,getAttribute(v).replace('&s='
      ,  (_.indexOf('tsotesting' )!=-1)?'&s=http://127.0.0.1:9000/prestaging|http://127.0.0.1:9000/prestaging|'
      : ((_.indexOf('anno-online')!=-1)?'&s=http://127.0.0.1:9001/live|http://127.0.0.1:9001/live|'
                                       :'&s=http://127.0.0.1:9000/live|http://127.0.0.1:9000/live|'
      ))),outerHTML=outerHTML)
    })(window.location.href,'flashVars')}})
});

Post reply

Sign in to post a reply.