Quackmaster Author

Sry I don't visit this forum very often. A solution is near - hopefully with the next update.

This will be resolved with the next update. There were some changes in Tonda’s polissearch which requires the rewrite of the feature on my end.

Which world(s) are we talking about? I will make an account and see if I can confirm any issues.

It's possible because I (or Tonda's townsearch) don't have access to the exact online times of a player (that would be terrible for all my ingame enemies ^^). The calculation of the inactivity is based on the last gain of citypoints or offensive points of a player. We thought that if you made citypoints or did attack someone you were definitely online the last few hours. So the display just gives you a hint if someone could be inactive or shows at least shows that a player is considerably low in activity. What I do is then check the stats of the player on Grepo Stats to see his/her development in the last weeks. All combined it's a good indicator to find some easy targets ;)

Thank you Marti for your efforts!

@Jestex: Instead of using my whole script why don't you just make your own script instead? Just take the hotkey part and disable the hotkey functionalities in my script (which can be done in the script settings). You can maybe use this as a start for making your own script:
QT Framework

Just wanted to say thank you! cloneInto was the way to go and your example code provided enough help to make the necessary changes to my script. :)


Sry I'm trying to be more clear :)
Currently I'm using:

  • GM_listValues
  • GM_getValue
  • GM_setValue
  • GM_deleteValue
  • GM_info
  • GM_xmlhttpRequest
  • unsafeWindow

I used @grant to allow the usage

In my script I access many objects in the page-script which worked fine via unsafeWindow. I also use $(document).ajaxComplete to check wether the game (Grepolis) has opened certain windows or started some functions. I can still do that if I inject my script via

function main () {
//my script
var script = document.createElement('script');
script.appendChild(document.createTextNode('('+ main +')();'));

The problem with this would be that I can't access the GM_* Functions from there which I use to save the script's settings, do a little GM_xmlhttpRequest to my site to count how many people are using the script and to provide a little update notice (I compare the @versions of the script and the meta.js every 24 hours).

FF API Changes


I'm struggeling with the recent API changes to unsafeWindow in Firefox 30++.

Could somebody point me in the right direction on how to use cloneInto(), exportFunction(), and createObjectIn() in a Greasemonkey Script?

For example - this is what I did before:

var uw = unsafeWindow || window, $ = uw.jQuery; //JQuery is alreay included into the page

$(document).ajaxComplete(function (event, xhr, settings) {
  alert("Ajax Call");

I know that I can inject this as a script directly into page but I don't wanna miss out on the GM_ functions. What do I need to do to make this work?

I have just one question: Is it possible to change the name of a script without creating a new instance of it?


Wenn du auf Deutsch schreibst, weiß ich vielleicht was gemeint ist und kann ggf. übersetzen ;) Ansonsten wäre auch gut zu wissen um welche Seite es sich dreht.