Large

GM_ScriptUpdater

By IzzySoft Last update Nov 13, 2009 — Installed 154,279 times.

Bandwidth Consumption

in
Subscribe to Bandwidth Consumption 7 posts, 2 voices



NOrack Scriptwright
FirefoxWindows

A simple stupid question from a dummy like me:
Considering bandwidth consumption, does this @required method download this GM_ScriptUpdater everytime I refresh web page which trigers my GM script?
To emphasize the need of anyone who use my GM script to reduce the trafic volume, I prefer to let my script looks dirty but consumes less bandwidth rather than to make it looks clean but consumes more bandwidth.

I thank you in advance for your (detail) explanation.

 
IzzySoft Script's Author
FirefoxWindows

Nope, don't worry: resources included via @require will be downloaded once only on installation (and again when you update). The @required code will then be stored on your disk together with the main script for further use - and the local disk is where it's loaded from on page refresh. So from this point of view, it makes absolutely no difference if you'd include the code directly with your script - which turns your concern into "looking dirty" versus "looking clean", and the bandwith question is gone Tongue

 
NOrack Scriptwright
FirefoxWindows

nice!
The question is gone since your updater will be downloaded onceat the installation of my code.
Then back to your discussion with sylvaen, the coder of GM Script Update Control; how will my GM script know when to redownload your updater script after you make any modification of your script?

I guess your code has to do 2 primary objectives, to check my code update and then to check your code update as well. If I update my code then your code will suggest code users to downlod the new version of my code, but if you update your code then your code will suggest users to uninstall my code and reinstall it afterward. That is what you have coded in your script, am I right?

This question of mine proves that I am totally &ltdummy&gt. :D

 
IzzySoft Script's Author
FirefoxWindows

You shouldn't @require both, Sylvaens script and mine! I wrote mine to replace the other one, since I didn't want to bother Sylvaen to write what I wanted to have. Talking about GM_ScriptUpdater: It periodically checks the local script version(s) against USO (by default once in 7 days, but you can set it to whatever you prefer). Please read the documentation in-depth (you find it on the scripts page, together with some examples), and you will see: Provided you set it up correctly (you need to wrap your scripts Metadata as the documentation describes, and then call GMSU.init with your scripts ID), it will do so for all scripts having their Metadata wrapped accordingly - either if the main script requires an update, or if the user runs a forced check. All is described in the documentation - if you need some more examples, check my ImmoFilter scripts, they use it (and offer a button in their config to let the user force an update check).

Second paragraph: "If my code (i.e. GMSU) was updated, but not yours" - nothing will happen. Only if the user forces an update check (or your code was updated), (s)he will find out whether some @required code was updated. In that case, it offers to a) visit your scripts page, b) update or c) do nothing. An uninstall is NOT required (against other advices/descriptions on USO, which are nothing but false conclusions as we found out) - once you "update" the main script, all @requires will be automatically installed again.

And just for the "dummy": There's currently no way to update a @required component without either updating the main script - or modifying the sources on the local disk manually, so don't worry about that Cool

 
IzzySoft Script's Author
FirefoxX11

NOrack: By the way, if you like the script - what about writing a little review? Angel

 
NOrack Scriptwright
FirefoxWindows

To be honest, up to the current moment, I don't test your updater yet. But your updater script is at the top of my "soon to test list". And after testing and make me used to implement your method in my GM script, if then I find myself enjoy using yours, you are correct that your script deserves to be reviewed and gets compliments. For that, give me some time before I decide to review yours.

p.s. FYI, no updater script has been found to satisfy me, yet. And I am still out to hunt. Yours could be the winning candidate and makes me stop hunting. Thanks for making the script available for us, the hunters. LOL

 
IzzySoft Script's Author
FirefoxWindows

Thanx for the encouragement! Of course you should take your time to test it - a review without having the stuff at least tried makes absolutely no sense. And if you miss something, or have suggestions for changes/improvements, don't hesitate to let me know!

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel