topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday November 21, 2025, 8:11 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Recent Posts

Pages: prev1 ... 91 92 93 94 95 [96] 97 98 99 100 101 ... 113next
2376
Living Room / Re: Anti-Necrospamming
« Last post by ewemoa on April 01, 2009, 07:52 PM »
One thing I noticed with Opera is that I have to wait what seems like a longer period of time than in FF to see the changes occur.  It seems to be after the fraction in the location bar (typically looks like: Elements: 44/44) is equivalent to 1 that the changes occur -- actually, it may be that it is after this fraction goes away and I see the orange feed icon.  I presume this means that the user script processing does not occur until everything in the page has been loaded (perhaps that's true for FF as well, but it happens that the DC pages in question are loading faster on my machine).
2377
Living Room / Re: Anti-Necrospamming
« Last post by ewemoa on April 01, 2009, 11:27 AM »
Not working for https at all but that's not a problem because I use http mainly.
-fenixproductions (April 01, 2009, 04:54 AM)
Hmm.

FWIW, I tested with Opera without making any of the modifications you mentioned and the script seems to work for me.

Perhaps I should try those modifications to see what happens locally...
2378
On my notebook, after installing TrueCrypt to try it out recently (in the last month or two), I got a BSOD.  Quite surprised actually -- I don't think I ever had a BSOD on my notebook before.

Another PC I look after on and off initially had a lot of BSODs -- it seems that it was partly due to faulty RAM as after that was replaced, didn't have BSODs for quite some time.  Sadly, recently have been experiencing BSODs on this machine more often, perhaps once a month?  (I expect it has to do with the relatively non-PC savvy users that are its primary users.)
2379
Living Room / Re: Anti-Necrospamming
« Last post by ewemoa on March 31, 2009, 09:47 PM »
I installed OperaUSB and did some testing.

I haven't gotten to the bottom of the issue, but one thing that seems like it could be it is mentioned at:

  http://my.opera.com/.../blog/show.dml/12919

The limitation first: because we are worried about potential spyware abuse, User JavaScripts will not run on pages that are encrypted. This is a big and very annoying limitation, and we're thinking hard about what we can do about it.

fenixproductions, by any chance, does the script work when accessing DC via vanilla http and not when via https?

That seemed to make a difference during my testing.
2380
Living Room / Re: Anti-Necrospamming
« Last post by ewemoa on March 31, 2009, 05:24 AM »
Hmm...I wonder why it isn't working for you...

FWIW, what it looks like for me in FF3 with the latest GM script is:

unreplied-topics-two-colors.png
2381
Living Room / Re: Anti-Necrospamming
« Last post by ewemoa on March 30, 2009, 08:58 PM »
(Opera supported userscripts long before Firefox)
-fenixproductions (March 30, 2009, 07:11 PM)
Ah, I didn't know that.  Thanks for the info.

Unfortunately, I don't know how should it work for topics listing. I can't see any change, neither in Opera nor Firefox.
An example page of where it might make a difference is unreplied topics.  Do you notice any effect there (the right-most column in particular)?
2382
Living Room / Re: Anti-Necrospamming
« Last post by ewemoa on March 30, 2009, 06:39 PM »
Works fine even in Opera. Good job  :Thmbsup:
-fenixproductions (March 29, 2009, 07:19 PM)

Thanks for the testing and feedback :)

I hope the subsequent versions keep working.  I guess there is some evidence to have hopes for this.
2383
Developer's Corner / MozMill
« Last post by ewemoa on March 30, 2009, 10:10 AM »
Has anyone tried out MozMill?

  http://quality.mozil...introduction-mozmill

MozMill is a test tool/framework for writing automated tests for XUL based applications (Firefox, Thunderbird, Songbird, etc). It is built as an extension which includes an IDE to help you write, run, and debug tests. MozMill has an extensive API to help you write functional tests that simulate user interactions, as well as a full unittest API.
2384
General Software Discussion / Re: eBook Reader alternate to Acrobat?
« Last post by ewemoa on March 30, 2009, 10:00 AM »
I've tried a portable version of FoxIt Reader and I nearly stayed with it.  It is quite nice.

However, on starting it up, it appears to insist on setting a file association for .pdf if none is set -- and I did not find a way to get it to stop doing this.  I hope there is a way...

For the moment I've decided to stick with SumatraPDF -- which does lack certain features (no text selection and the aforementioned bookmarking), but it is a better-behaved application IMHO.
2385
Living Room / Re: Anti-Necrospamming
« Last post by ewemoa on March 30, 2009, 09:55 AM »
I've added some support for different colors (dependence on age range) and merged the two scripts.  It doesn't work everywhere (yet?).  If you find an area of the forums that you'd like supported, please let me know.

Code: Javascript [Select]
  1. // ==UserScript==
  2. // @name           Nemse
  3. // @namespace      http://ewemoa.dcmembers.com/greasemonkey/
  4. // @description    Script to provide visual indication of ages of posts and topics
  5. // @include        https://www.donationcoder.com/forum/*
  6. // @include        https://www.donationcoder.com/forum/*
  7. // ==/UserScript==
  8.  
  9. var now, then, dmsec, gap, ageTable, age, color, dateRe,
  10.     xpExpList, snapResults, i, j, k, matched,
  11.     elm, text, m;
  12. // there is only now -- really?
  13. now = new Date();
  14. // milliseconds in a day
  15. dmsec = 24 * 60 * 60 * 1000;
  16. ageTable =
  17.   [
  18.    //[7 * dmsec, "black"],
  19.    [21 * dmsec, "green"],
  20.    [60 * dmsec, "purple"],
  21.    [120 * dmsec, "orange"],
  22.    [180 * dmsec, "red"]
  23.   ];
  24. dateRe = /(\d{4})-(\d{2})-(\d{2})/;
  25. xpExpList =
  26.   [
  27.    // posts
  28.    "//div[contains(@id, 'subject')]/following-sibling::*",
  29.    // topics
  30.    "//table/tbody/tr/td[7]/span"
  31.   ];
  32. for (i = 0; i < xpExpList.length; i += 1) {
  33.   snapResults = document.evaluate(xpExpList[i], document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  34.   for (j = snapResults.snapshotLength - 1; j >= 0; j -= 1) {
  35.     elm = snapResults.snapshotItem(j);
  36.     text = elm.textContent;
  37.     m = dateRe.exec(text);
  38.     if (m === null) {
  39.       continue;
  40.     }
  41.     matched = true;
  42.     then = new Date(m[1], (m[2] - 1), m[3]);
  43.     gap = now - then;
  44.     color = null;
  45.     for (k = 0; k < ageTable.length; k += 1) {
  46.       age = ageTable[k][0];
  47.       if (gap > age) {
  48.         color = ageTable[k][1];
  49.       } else {
  50.         break;
  51.       }
  52.     }
  53.     if (color !== null) {
  54.       elm.setAttribute("style", "color: " + color + ";");
  55.     }
  56.   }
  57.   if (matched === true) {
  58.     break;
  59.   }
  60. }
  61. // XXX
  62. //alert("It is currently: " + now.getFullYear() + "-" + (now.getMonth() + 1) + "-" + now.getDate());
2386
Living Room / Re: Anti-Necrospamming
« Last post by ewemoa on March 30, 2009, 05:41 AM »
The following is a separate attempt to work with topic listings.  It's separate to simplify testing.  Probably it makes sense to merge the scripts at some point :)

Code: Javascript [Select]
  1. // ==UserScript==
  2. // @name          NemseNaa
  3. // @namespace     http://ewemoa.dcmembers.com/greasemonkey/
  4. // @description   Script to provide visual indication of topics older than some amount
  5. // @include       https://www.donationcoder.com/forum/*
  6. // @include       https://www.donationcoder.com/forum/*
  7. // ==/UserScript==
  8.  
  9. var now, then, gap, age, dateRe, xpExp, snapResults, i, elm, text, m;
  10. now = new Date();
  11. age = 30;
  12. dateRe = /(\d{4})-(\d{2})-(\d{2})/;
  13. xpExp = "//table/tbody/tr/td[7]/span";
  14. snapResults = document.evaluate(xpExp, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  15. for (i = snapResults.snapshotLength - 1; i >= 0; i -= 1) {
  16.   elm = snapResults.snapshotItem(i);
  17.   text = elm.textContent;
  18.   m = dateRe.exec(text);
  19.   if (m === null) {
  20.     continue;
  21.   }
  22.   then = new Date(m[1], (m[2] - 1), m[3]);
  23.   gap = (now - then) / 1000 / 60 / 60 / 24;
  24.   if (gap > age) {
  25.     elm.setAttribute("style", "color: red;");
  26.   }
  27. }
  28. // XXX
  29. //alert("It is currently: " + now.getFullYear() + "-" + (now.getMonth() + 1) + "-" + now.getDate());

Ah, and as to the XPath resources I've been using:


The former was mentioned in the latter.

I don't know whether GM supports XPath 1.0 or 2.0...
2387
Living Room / Re: Tech News Weekly: Edition 13-09
« Last post by ewemoa on March 30, 2009, 04:37 AM »
Re: conficker vs conflicker -- I confess that I didn't actually know what it was until this week's edition's mentioning prompted me to investigate -- and thanks to that effort, I came across the following nifty timeline:

  https://secure.wikim...er_viruses_and_worms

Thank you for contributing to my further education ;)
2388
Living Room / Re: Tech News Weekly: Edition 13-09
« Last post by ewemoa on March 30, 2009, 02:15 AM »
Thanks for your ongoing efforts Ehtyar  :Thmbsup:

Re: 3  s/5.0.8/3.0.8/ ?

Re: 4  s/Conflicker/Conficker/ ?

Re: 6  FWIW, I have been an occasional user of Vivismo / Clusty for some years -- when I don't get much relevant via Google (seems more frequent these days), I tend to go to Clusty.  The fact that I am presented with non-trivial groups of results (paging is something I would call trivial) I can get at has helped sometimes but not enough to make me want to use them by default.  No, I'm not affiliated with them :)

Re: 7  Alternate headline: "Gov't organization's vulnerability exploited and their power leveraged to target..." ;)

2389
Living Room / Re: Tech News Weekly: Edition 12-09
« Last post by ewemoa on March 30, 2009, 01:46 AM »
Thanks again, Ehtyar :)

Re: 1  Sigh...

Re: 6  Good point Lashiec.

Re: 7  s/IMB/IBM/ ?

Re: 8  Memories of Sun Sparc Station 20s with microphones and eavesdropping...
2390
Living Room / Re: Anti-Necrospamming
« Last post by ewemoa on March 30, 2009, 01:35 AM »
In case anyone wants to experiment, I think the following XPath expression may pick out relevant bits for topic listings:

//tr[@class='titlebg']/following-sibling::*/td[@width='22%']/span

Perhaps a bit on the fragile side...may be someone else can come up something more robust.

On a side note, I used the XPath Checker FF Extension to interactively come up w/ these XPath expressions (well, in combination with some tutorial sites ;) ).

I confess that it is really thanks to other folks sharing info and tools that makes putting something together like this feasible.  Hail sharing  :Thmbsup:
2391
Living Room / Re: Anti-Necrospamming
« Last post by ewemoa on March 30, 2009, 01:18 AM »
Works well inside threads, ewemoa. I couldn't get it working for topic listings though.

Ah, I hadn't thought to try to handle topic listings.  I wonder if I should consider a separate script for that...

I've modified if slightly to show different colors for
under a week
1-3 weeks
3 weeks to 2 months
over 2 months.

Beat me to it  :Thmbsup:
2392
Post New Requests Here / Re: IDEA: Click/scroll in Inactive Windows
« Last post by ewemoa on March 30, 2009, 12:45 AM »
I'm about to try the following:

  http://www.wxftools....angel/deskangel.html

Thanks Mazinga for the KatMouse suggestions as DeskAngel came up for a search of:

  portable katmouse

Unfortunately, it doesn't look like it (DeskAngel) works for the case I had in mind: MS Script Debugger...ah well.
2393
Living Room / Re: Anti-Necrospamming
« Last post by ewemoa on March 30, 2009, 12:36 AM »
Above post (I think) caused a "Page Exception" error - I couldn't even get this page to render without creating an exception certificate. How come?

I think it may have to do with my using SSL / https to access DC when creating the post -- perhaps uploading the attachment under those conditions caused the link(s) to the image / thumbnail to be made available only via SSL / https.


Could be...  I know I had about a dozen notifications from DC and that one was somewhere in the middle. All before and after were fine - only that one kept throwing the error.

I tried experimenting in "My Personal Area" but didn't manage to duplicate the issue.  I don't have any good ideas of what happened for you...

I've also tested viewing the thread using another PC with the same browser version (FF 3.0.7) with no particular exceptions set for SSL without incident.

Curioser and curioser...
2394
Living Room / Re: Anti-Necrospamming
« Last post by ewemoa on March 29, 2009, 11:53 PM »
Thanks to your script another necro-spammer was uncovered and his "ad" removed.  :Thmbsup:

Woohoo!

Didn't realize that part when I first installed it and couldn't figure out why it wasn't working for me. Then I changed how the date is displayed in my forum preferences and it worked great.

I'm happy to consider working on other date formats -- I won't promise anything, but knowing which ones specifically people use might increase the probability of quicker support within the script ;)
2395
Living Room / Re: Anti-Necrospamming
« Last post by ewemoa on March 29, 2009, 05:50 PM »
Above post (I think) caused a "Page Exception" error - I couldn't even get this page to render without creating an exception certificate. How come?

I think it may have to do with my using SSL / https to access DC when creating the post -- perhaps uploading the attachment under those conditions caused the link(s) to the image / thumbnail to be made available only via SSL / https.
2396
Living Room / Re: Anti-Necrospamming
« Last post by ewemoa on March 29, 2009, 09:09 AM »
As an experiment, I put together a Greasemonkey script to change the color of the reply date string if it's been more than 180 days.

It currently only works w/ dates that contain YYYY-MM-DD portions, but if there's interest, may be it can be appropriately modified ;)

reply-date-string-color-change.png

Code: Javascript [Select]
  1. // ==UserScript==
  2. // @name          Nemse
  3. // @namespace     http://ewemoa.dcmembers.com/greasemonkey/
  4. // @description   Script to provide visual indication of posts older than some amount
  5. // @include       https://www.donationcoder.com/forum/*
  6. // @include       https://www.donationcoder.com/forum/*
  7. // ==/UserScript==
  8.  
  9. var now, then, gap, age, dateRe, xpExp, snapResults, i, elm, text, m;
  10. now = new Date();
  11. age = 180;
  12. dateRe = /(\d{4})-(\d{2})-(\d{2})/;
  13. xpExp = "//div[contains(@id, 'subject')]/following-sibling::*";
  14. snapResults = document.evaluate(xpExp, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  15. for (i = snapResults.snapshotLength - 1; i >= 0; i -= 1) {
  16.   elm = snapResults.snapshotItem(i);
  17.   text = elm.textContent;
  18.   m = dateRe.exec(text);
  19.   if (m === null) {
  20.     continue;
  21.   }
  22.   then = new Date(m[1], (m[2] - 1), m[3]);
  23.   gap = (now - then) / 1000 / 60 / 60 / 24;
  24.   if (gap > age) {
  25.     elm.setAttribute("style", "color: red;");
  26.   }
  27. }
  28. // XXX
  29. //alert("It is currently: " + now.getFullYear() + "-" + (now.getMonth() + 1) + "-" + now.getDate());
2397
Site/Forum Features / Re: "last post" icon
« Last post by ewemoa on March 29, 2009, 05:43 AM »
I've been an appreciative user of that icon  :Thmbsup:

However, perhaps its distance from the topic title (subject?) text is too big for me so that I experience off-by-one syndrome and end up at an incorrect thread not too infrequently...

mouser told me that the little "new" image that comes after the topic title text can be clicked for the same effect so I've been trying this.  I find that having to move my pointer both horizontally as well as vertically to be a bit inconvenient though (for the last post icon, I only need to move my pointer vertically to get to successive icons).

Never satisfied ;)
2398
I looked at the results that nosh pointed at and noticed the following:

  https://www.donation...?topic=8636.msg71818

Does that help at all?
2399
I didn't know what was involved in detail before watching this and now I have a much clearer idea :Thmbsup:
2400
FARR Plugins and Aliases / Re: An Extremely Simple Gmail Tasks Plugin
« Last post by ewemoa on March 28, 2009, 09:18 PM »
Initially I was a little hesitant to post it, seeing how simple it was
IMHO, it's great that it's simple -- what a great example it can serve as  :Thmbsup:
Pages: prev1 ... 91 92 93 94 95 [96] 97 98 99 100 101 ... 113next