UserScripts Totals Data

By Avindra V.G. Last update Nov 16, 2008 — Installed 346 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 23 posts, 6 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
Avindra V.G. Script's Author

I've never installed his.. but this one does what it says it does. It doesn't work on /home/scripts as of now though.

I kinda stopped working on this script because theres the new /home/comments page.

 
znerp Scriptwright

I've only just come across this script. I'm just wondering (since I can't be bothered to check at the moment) what the difference between this script and this one by Arvid?

 
Avindra V.G. Script's Author

i'll update it sometime... feeling kinda lazy right now haha. nah just kidding. i have college business to take care of, so I've been kinda inactive on here.

 
JoeSimmons Scriptwright

Cool I like that.
Just one more new problem. It needs to work on /home/scripts.

 
Avindra V.G. Script's Author

thanks joe I changed it, and added an option to close to message.

 
JoeSimmons Scriptwright

I don't like how big the text at the bottom is. It's hard to read some things and I can't click my next page link.
Any way you could change that so I don't have to change that? so my 'Userscripts updater' doesn't think it's a new version. Possibly make it a nice 10pt or 12px with a white font, and take out the h5 and big?

 
Avindra V.G. Script's Author

true... thanks and script updated. i really appreciate the suggestions

 
Raffles Scriptwright

By the way, instead of using this:
document.body.previousSibling.innerHTML+=
you can use GM_addStyle, which is a bit nicer.

 
JoeSimmons Scriptwright

It's working on all profiles, not just my own anymore.

 
Avindra V.G. Script's Author

done, thanks

 
JoeSimmons Scriptwright

Change the following to that which follows it....

if(c<com)m+=" You have <strong>"+eval(com-c)+"</strong> new comment(s)! ";
if(c<com)document.title+=eval(com-c)+" new comments!";
if(c<com) {
m+=" You have <strong>"+eval(com-c)+"</strong> new comment(s)! ";
document.title+=eval(com-c)+" new comments!";
}

So you don't have to do 2 if statements and re-evaluate the value of com twice.

 
Avindra V.G. Script's Author

hmm i think that's because your scripts are on two pages... it works fine on mine. i'll try to incorporate 2+ pagers sometime later.

 
JoeSimmons Scriptwright

Thought I'd give you a heads up that the script gets confused when
you use a ?sort= and shows that there are a lot of
new comments when there are none.

 
Avindra V.G. Script's Author

Hey Joe, I agree haha. I was getting a little too css happy. the newer version makes minimal changes to the style.

 
JoKeR2000 Scriptwright

Thanks

 
JoeSimmons Scriptwright

Nice. but I don't like the style of the page you made.
I'd like it if you just didn't do the css at all :p

 
Avindra V.G. Script's Author

thanks for the suggestion joe! i added it to the script

 
JoeSimmons Scriptwright

Awesome. The only recommendation I have right now is to make it get the user id on its own.
I created that part of the script for you. Just replace your var uid=61251; line with this...

if(GM_getValue("uso_user_id", "0") !== "0") {
var uid = GM_getValue("uso_user_id");
}
else {
var xp = document.evaluate("/html/body/div/ul/li[4]/a", document, null, 9, null).singleNodeValue;
var uid = xp.href.substring(7, 12);
GM_setValue("uso_user_id", uid);
}

 
Avindra V.G. Script's Author

Update: Script now has a new and improved message center.

 
JoeSimmons Scriptwright

Ok cool avg, thanks. 'Cause as you know, I have like 44 scripts, and it takes long to go through and try to remember how many comments all the scripts had before and how many they have now.

 
Avindra V.G. Script's Author

I imagine that's a fairly simple thing to do; I'd use a few more GM variables. I'll work on it later today if I have time.

 
JoeSimmons Scriptwright

I wish when it gave the notification of how many new comments you have, it would be a link to show which scripts got the new comments. Can you do that?

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