Script xShteff's Silly Script Collection

Discussion in 'External Sites Discussion' started by xShteff, Sep 16, 2014.

Share This Page

Thread Status:
Not open for further replies.
  1. Pnevma

    Pnevma Well-Known Member

    Joined:
    Dec 9, 2014
    Messages:
    211
    Likes Received:
    14
    Oh, I see, I didn't read that, sorry
     
  2. xShteff

    xShteff Well-Known Member

    Joined:
    Jan 18, 2012
    Messages:
    425
    Likes Received:
    137
    Since a new tamboola™ was announced on zz not too long ago, I believe it's the right time to release something I and Diggo have been working on for the past few weeks. What is it? Well, it's pretty much a replacement for the already existing TW-Friends userscript.

    After installing the script, if there's a tamboola™ running, you'll see a new counter that'll allow you to open a window from where you can send currency to your friends, see how many currency the friend sent to you and all the timestamps of him doing so.

    Here's how the whole thing looks like:

    [​IMG]

    Now you might ask me, "Why make something that's already there and it's working?". Well indeed the old script is indeed working (more or less), but it is coded in such way that it will send a request to the server every 2 minutes.

    Why is that bad? Well imagine few hundred of people having the old script installed and sending an useless request every 2 minutes. That'll make the servers lag AND make your browser freeze at the same time every time it sends the request, and I don't think anyone wants that.


    Any kind of feedback/suggestions is appreciated. Also bugs/errors/mistakes should be reported here preferably.

    Script link: https://xshteff.github.io/userscripts/twbf.user.js
     
    Last edited: Mar 15, 2016
  3. Musagete

    Musagete Well-Known Member

    Joined:
    Nov 30, 2009
    Messages:
    136
    Likes Received:
    23
    Ty sir!
     
  4. realkazman

    realkazman Well-Known Member

    Joined:
    Sep 25, 2008
    Messages:
    188
    Likes Received:
    1
    With the old script we could get locked out if we clicked to fast...

    Is that a issue with the replacement script???
     
  5. Slygoxx

    Slygoxx The West Team Marshal

    Joined:
    Mar 10, 2009
    Messages:
    2,265
    Likes Received:
    215
    That depends on the amount of requests you send to the game, so that is indeed still possible.
     
  6. xShteff

    xShteff Well-Known Member

    Joined:
    Jan 18, 2012
    Messages:
    425
    Likes Received:
    137
    Nope. That's the server flood protection. The only way of going around that is if I added a timer on the buttons that would stop you from sending eggs too fast.
     
  7. jcrawford27

    jcrawford27 Member

    Joined:
    May 17, 2011
    Messages:
    20
    Likes Received:
    0
    This script is nice, I love the addition of the ability to see who sent on what days. That is great. However I think you should do a bit more work on it to make it more like TW-Friends in the fact that the bar item was placed in the bar not below, was less cluttered. Also the UI of the table you cannot sort columns, etc.

    I would be happy to jump in and help with some of this if you are open to script contributions :)
     
  8. xShteff

    xShteff Well-Known Member

    Joined:
    Jan 18, 2012
    Messages:
    425
    Likes Received:
    137
    Uhm, what? Which bar are you talking about?
     
    Last edited: Mar 24, 2016
  9. jcrawford27

    jcrawford27 Member

    Joined:
    May 17, 2011
    Messages:
    20
    Likes Received:
    0
     
    Last edited: Mar 24, 2016
  10. Slygoxx

    Slygoxx The West Team Marshal

    Joined:
    Mar 10, 2009
    Messages:
    2,265
    Likes Received:
    215
    The tw-db script does that, the default location of the tw-friends script is below the bar as well.
     
  11. jcrawford27

    jcrawford27 Member

    Joined:
    May 17, 2011
    Messages:
    20
    Likes Received:
    0
    Ah gotcha, odd that the tw-db script doesn't do that for your but does for tw-friends :(
     
  12. xShteff

    xShteff Well-Known Member

    Joined:
    Jan 18, 2012
    Messages:
    425
    Likes Received:
    137
    Not really odd as I didn't want any other script interfere with mine. (And I find that feature really annoying)
    Contribute? Looked through the code? Did you look inside the repo? Because there's two versions. The one that I published is the minified version, which was minified for a reason (Since you mentioned "contribute" I guess you know why having minified code is better). I also have the one we worked on, which is fully documented and obviously not minified.

    Well, that's just your opinion ;). I wanted to build an userscript that doesn't send useless requests and lets me send currency to my friends without too much trouble, and hey, that's what it is right now. I'm the kind of guy that doesn't bother "hunting" people that don't give away any currency, and just sends to everyone no matter what. Because of that, I believe it is already one step ahead. Also, it is still the first public build and it'll probably get improved over time. (If I have time, ofc)
     
  13. jcrawford27

    jcrawford27 Member

    Joined:
    May 17, 2011
    Messages:
    20
    Likes Received:
    0
    Understood.

    Yes I understand minified code is better and understandable that you would do it like that. I had checked your repo but did not see the tw-best-friends script in there so the only option i had was to copy the code in the userscript and beautify it for better readability. The repository I checked was https://github.com/xShteff/TWScripts I notice you have it in it's own repository and you are correct that code is FAR better and easier to read :) I think I am stuck on the OOP vs Procedural when it comes to the readability as I have been in OOP land for years now :)

    Yes but if you don't take users opinions into account you won't have many people using the script other than yourself and a few close friends, unless that is your plan :) Completely understand about it being a first build and please do not take it as an insult it was merely suggestions :)
     
  14. xShteff

    xShteff Well-Known Member

    Joined:
    Jan 18, 2012
    Messages:
    425
    Likes Received:
    137
    Well, the script started under a different name, but it's still pretty close to the current one. https://github.com/xShteff/Better-TW-Friends. You could also guess which one it was :p
     
    Last edited: Mar 24, 2016
  15. xShteff

    xShteff Well-Known Member

    Joined:
    Jan 18, 2012
    Messages:
    425
    Likes Received:
    137
  16. jcrawford27

    jcrawford27 Member

    Joined:
    May 17, 2011
    Messages:
    20
    Likes Received:
    0
  17. xShteff

    xShteff Well-Known Member

    Joined:
    Jan 18, 2012
    Messages:
    425
    Likes Received:
    137
    It's been more than one year since I released the so-called "Magic Bundle", a pack of all my userscripts (Not anymore all of them, I guess) that can be activated with a single click. Well, I looked over the code like three days ago and I was shocked... it was horrible :p

    Well, not anymore, I guess. The "Magic Bundle" has been updated to version 2.0. How is it different? Well... it isn't really. It's pretty much the same... but different. The current code is 1000 times cleaner than the old one, it is also mostly automatised, so I'll be able to add new features to the pack without too much struggle. The button that enables/disables a feature is no longer a 1080p image that takes ages to load and it should load pretty quick, and it will have this awesome transition whenever you trigger a feature.

    The notifications will no longer break whenever you get a message containing emoticons. Oh, and I've also changed that boring golden envelope image inside the actual notifications, to something that'll match the feature.
    Here's how they currently look like:

    Chrome:
    [​IMG]
    Firefox:
    [​IMG]

    Oh, I've also added a new silly feature. It's pretty much a "Neon" Experience bar, that changes color constantly. Here's how it looks like. (Such a shame I can't display animated gifs here >_>).

    I haven't decided yet if I should add TWKappa, TWZoom or TW Best Friends to the Magic Bundle (TWBF will conflict with the VP counter). Any opinions/suggestions are welcome.

    Install URL: https://xshteff.github.io/userscripts/magic.user.js
    Repository: https://github.com/xShteff/Magic-Bundle-v2/
     
  18. Wojcieszy

    Wojcieszy Member

    Joined:
    Feb 17, 2012
    Messages:
    10
    Likes Received:
    3
    Hello... I have idea to script. Notification to PM, such as whisper [​IMG].

    [​IMG]
     
  19. xShteff

    xShteff Well-Known Member

    Joined:
    Jan 18, 2012
    Messages:
    425
    Likes Received:
    137
    PM....? You mean telegrams? Do people even use telegrams nowdays?
     
  20. Anny Hudson

    Anny Hudson Well-Known Member

    Joined:
    Dec 6, 2012
    Messages:
    967
    Likes Received:
    127
    Ofc Shteff, we do :cool:
     
Thread Status:
Not open for further replies.