A thread especially for those sorting through Musrum’s immensely appreciated efforts with his CCCP browser bolt-ons.
For Firefox, install in order:
For Chrome:
Analysis and discussion of elections and opinion polls in Australia
A thread especially for those sorting through Musrum’s immensely appreciated efforts with his CCCP browser bolt-ons.
For Firefox, install in order:
For Chrome:
testing 123
upside down anyone?
http://blogs.crikey.com.au/pollbludger/2012/09/24/essential-research-55-45-to-coalition-6/?comment_page=2/#comment-1420806
A link to the scripts, plus discussion where people are installing it.
Yes, upside down.
Did the green font change? Mine is still green.
OK, I’ve got the comment box back down the bottom again.
Numbering is now ordered with lowest at the bottom, highest at the top though. (ie. 3 at the top)
ok, if i disable udmj my comment box goes to the top. This is telling me that cccp is not installing properly.
Are the CCCP links constant, or do they change every time there’s an update?
Posting help, that gives info on emoticons etc, is also not showing up.
The only thing I did to the script after updating it was copy and paste in the line to change the font. I pasted it in right down at the bottom of the script. I have now deleted it but comments are running in the annoying new Crikey way instead of Upside Down Miss Jane way.
Blimey, this is funny!
The comments box is at the bottom but the numbering is still reverse order and no page number at the bottom either.
Right, I think I will delete all those scripts and start again.
Ok, I’ve found two possible bugs in the latest cccp script. Try commenting out the following lines and refreshing:
// Page Numbers at the bottom
comments.appendChild(getByClass(“numbered-pagination”,comments_list)[0].cloneNode(1));
and…
// Remove color from elements
document.styleSheets[2].rules[4].style.color = “”;
So comment box is in the right place, BUT:
1. comment numbering is reversed
2. no page numbering
3. no cccp help link
4. puke green font still there and can’t change font type.
Tried pasting in that code Dario. None worked and now comment box is at the top again.
This line will break on pages where there are only 50 comments or less:
// Page Numbers at the bottom
comments.appendChild(getByClass(“numbered-pagination”,comments_list)[0].cloneNode(1));
[Tried pasting in that code Dario. None worked and now comment box is at the top again.]
Don’t paste that code in, you need to find where it already exists in your cccp script and comment it out by putting // to the left of it
Dario:
I copied the exact code you put in and then pasted it over the top to replace the existing code, replacing the ‘error’ as it were. I should do something different?
Both scripts (cccp & stfu) working now except the font change. In fact, adding the font-change line was what stopped the scripts working.
[Are the CCCP links constant, or do they change every time there’s an update?]
Constant I believe
Oh, sorry, nevermind. I misunderstood you.
Oops, no, I’m still upside down, but the edit box has moved to the bottom (worse than before; at least it was where the latest post was).
[Dario:
I copied the exact code you put in and then pasted it over the top to replace the existing code, replacing the ‘error’ as it were. I should do something different?]
Too hard to explain. I’ll leave it to Musrum to fix up his script.
[In fact, adding the font-change line was what stopped the scripts working.]
I find that very difficult to believe 😉
Hello tech heads & mental patients
Back on firefox and downloaded Greasemonkey and cccp… what do I do now? All seems the same to me, but I’m good with a hammer and nail!!
[Oops, no, I’m still upside down, but the edit box has moved to the bottom (worse than before; at least it was where the latest post was).]
Some of the bugs in the script only break pages with less than 50 posts, or if you aren’t logged in, or if you view the main page, so you may find if you go from one page to another you find things stop working and then suddenly work again without changing anything in the script itself.
It’s definitely the case, Dario. I just put the font-change line back in stfu and William’s post reappeared again. 🙂 🙂
Seriously, it does stop it working. Same for cccp. cccp moved the edit box to the bottom when I removed the font line (so script “working” but still buggy since still upside down).
Have to go. Continue later.
I’d just like to add that I think Musrum has absolutely kicked ass with cccp, and that my finding bugs is in no way suggesting a bad job! As a coder myself, bugs are totally expected 🙂
[It’s definitely the case, Dario. I just put the font-change line back in stfu and William’s post reappeared again.]
Hmmm, maybe you don’t have verdana font? Haven’t seen that issue before. Are you using Firefox or Chrome? (not that it should matter)
Musrum, this line breaks in Firefox because rules is IE only:
// Remove color from elements
document.styleSheets[2].rules[4].style.color = “”;
I have tried everything. Changed from Chrome to Firefox, installed cccp, greasemonkey and still the comments are upside down, there is no cccp or show help. In fact I have nothing. Any ideas?
Ian, there are a few bugs in the cccp script at the moment which are causing it not to work on certain pages and with certain browsers. Just hold tight till Musrum comes back around and can get it fixed up.
[Are the CCCP links constant, or do they change every time there’s an update?]
They are constant.
Hi Musrum, if you get a chance to look at posts 14 & 29, there’s a couple of bugs that are causing some grief for the unwashed 😉
The getByClass on the numbered-pagination element should just need an if not null check before appending, and I think Firefox uses cssRules instead of rules
New Version up.
// Ver 3.11
// Revert to old Pagination
I think I might need to feature freeze now and tackle some of the bugs.
Actually don’t try 3.11 yet
[I think I might need to feature freeze now and tackle some of the bugs]
Needless to say you’ve done a brilliant job! Have been using it to silence the spam for a long time now 🙂
I don’t mind pitching in if you need to farm out anything. Just let me know.
OK. should be OK now.
Musrum@38
Err. no it’s not. Doesn’t work for threads like this with < 51 comments.
Dario@37
Thanks! It’s nice to know that it still works!
What do you know about Javascript dev environments? What I’d love to do is edit in my favoured text editor and be able to deploy into Tampermonkey (for testing) and then release into userscripts from the command line.
[What do you know about Javascript dev environments? What I’d love to do is edit in my favoured text editor and be able to deploy into Tampermonkey (for testing) and then release into userscripts from the command line.]
I don’t do a lot of JS (C++/Java is my staple), but generally just use the Firebug console when I do
Seems to work for me on this page? What did you still think was broken?
[I don’t do a lot of JS (C++/Java is my staple), but generally just use the Firebug console when I do]
To be honest I’m a bit of a JS novice myself. STFU was my first script (bob1234 was my inspiration :devil:).
Do you have an account on Usercripts? If so: I see that they have Groups so I assume we can collaborate trough there. What do you want to call it?
Pretty good for a first effort! 🙂
I don’t have an account, but can certainly make one. How about ‘Better Bludging’ or something similar?
Dario@41
Just fixed it a minute or so ago.
The Pagination fix doesn’t work too well without a Pagination div.
Actually that reminds me: the biggest bug I have is unreported: This thing will crash completely without a logged in account, so all the lurkers are not in a happy place right now.
Dario@43
Sound good.
Let me know when you have an account setup.
Just signed up as DarioPB
Ok, the crash is from this, because the comments box element isn’t there if you havent logged in:
comments.appendChild(respond);
3.12 upside down and green.
To revert back to 3.10:
http://userscripts.org/scripts/version/66745/511353.user.js
Also, the latest cccp 3.12 has a bug:
if ( numbered_paginations != undefined && numbered_paginations.length > 0 ) {
should be:
if ( numbered_pagination != undefined && numbered_pagination.length > 0 ) {