US.o script author helper

By Mindeye Last update Jun 27, 2010 — Installed 591 times.

option - usersxxxx

in
Subscribe to option - usersxxxx 5 posts, 2 voices



gollum Scriptwright

Could you fork/modify it so it also works on users/xxxx/scripts as currently the feedback only works for first page of home/script.

 
Mindeye Script's Author

Can you tell me how is the URL of page 2, 3, etc... of /home/scripts (I only have 6 scripts, so I can't check)? That way I can change the @include to make the script work in all the pages of /home/scripts

 
gollum Scriptwright

http://userscripts.org/home/scripts?page=2

 
gollum Scriptwright

Need to differentiate the saved details by url. A simple @include only will not work -- you'll get plus figures for page 2 (as though all the scripts were newly uploaded), then next time you land on page 1 it will show negative totals (page 1 minus page 2).

 
Mindeye Script's Author

Thanks for the info. No, that's not a problem because the script extracts the script id and name from the table, so it won't confuse scripts. However, there is a problem with the function which saves the data to about:config, as it overwrites the old data completely, so a page data will be overwritten when going to another page. There's also a problem with the totals, as only the current page is taken into account

About your initial suggestion: /users/xxxx/scripts is paginated too, so that won't solve the problem

I'll have to figure out a good method to deal with these problems and upload a new version of the script

PD: Let's see if Jesse answer to my request about the US.o API here. That will simplify the solution

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