InfoCompte_lang

By vulca Last update Dec 15, 2011 — Installed 160,483 times.

Would you please...

in
Subscribe to Would you please... 8 posts, 2 voices



Marti Scriptwright
FirefoxX11

Would you please use the meta.js routine for script update checking?

Use http://userscripts.org/scripts/source/54665.meta.js and @version instead of

...
        if (parseInt(GM_getValue("dateMaJ",0))+23*3600< Date.parse(new Date()) / 1000 ) 
        {
          GM_xmlhttpRequest(
          {
            method: 'GET',
            url: 'http://userscripts.org/scripts/show/54665',
            
            onload: function(response) 
            {
              var PageUserScript = response.responseText;
              
              var Derniere_Version = trim(PageUserScript.substring(PageUserScript.indexOf('Version:')+15, PageUserScript.indexOf('
', PageUserScript.indexOf('Version:'))));
...

Thanks :)

 
vulca Script's Author
FirefoxWindows

why not, but what's the problem ?

 
Marti Scriptwright
FirefoxX11

vulca wrote:
why not, but what's the problem ?
USOs official blog post

Your self-updating, when you post an update and people come in droves, can cause a 502 or a 503 forced error even while browsing the site because your script homepage is larger than the meta.js routine. Changing it will also make your users much happier that you are conserving their bandwidth too when there isn't an update.

Remember that Users may also have other user.js installed that also update checks too... too many requests on USO and instant breakage/delays. The meta.js routine ensures that only what is relevant is returned instead of clogging up the internet bandwidth. :)

 
vulca Script's Author
FirefoxWindows

ok, it will be done soon :)

 
vulca Script's Author
FirefoxWindows

Done ;)
I'll do the same for my other script

Thanks

 
Marti Scriptwright
FirefoxX11

vulca wrote:
Done ;)
...
Thanks
Awesome and Thank you! :)

vulca wrote:
I'll do the same for my other script(s)

 
vulca Script's Author
FirefoxWindows

all done :)

 
Marti Scriptwright
FirefoxX11

vulca wrote:
all done :)
Kewlieez! :) Thanks... many happy users soon.

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