Tip jar

If you like CaB and wish to support it, you can use PayPal or KoFi. Thank you, and I hope you continue to enjoy the site - Neil.

Buy Me a Coffee at ko-fi.com

Support CaB

Recent

Members
Stats
  • Total Posts: 5,559,184
  • Total Topics: 106,348
  • Online Today: 741
  • Online Ever: 3,311
  • (July 08, 2021, 03:14:41 AM)
Users Online
Welcome to Cook'd and Bomb'd. Please login or sign up.

March 29, 2024, 05:39:32 AM

Login with username, password and session length

The block-user script is now available as a chrome extension

Started by Paul Calf, January 13, 2017, 10:59:01 PM

Previous topic - Next topic

Zetetic


Endicott


Blue Jam

Quote from: Endicott on May 12, 2021, 05:08:48 PM
It's a bit tricky to diagnose without any obvious errors, I'm afraid.

One last try, use this version. It's got added console diagnostic messages (and bug fixes including what Consignia found). The go to a profile page and get the console up again. refresh that profile page, you should see in the console

ignore script running
begin creating ignore link
add ignore link event listener
added ignore link
hidePosts - begin
hideQuotes - begin

Yes! Got that! Also got this error message:

QuoteMixed Content: The page at 'https://www.cookdandbombd.co.uk/forums/index.php?action=profile;u=---'; was loaded over HTTPS, but requested an insecure element '[avatar].jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
index.php?action=profile;u=10980:1 Mixed Content: The page at 'https://www.cookdandbombd.co.uk/forums/index.php?action=profile;u=---'; was loaded over HTTPS, but requested an insecure element '[avatar]'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html

I assume this error message is referring to the avatar of the profile- ie, an image which isn't hosted at CaB. Not getting it for the other profiles I tried though, and no Ignore User link on any of them.

Thanks Endicott, and again sorry I'm so crap at this.

Also got this for the home page:

QuoteMixed Content: The page at 'https://www.cookdandbombd.co.uk/forums/index.php'; was loaded over HTTPS, but requested an insecure script 'http://ir-uk.amazon-adsystem.com/s/ads.js';. This request has been blocked; the content must be served over HTTPS

Barry Admin

Gimme half an hour or so and I'll switch it on for a trial run.

Sebastian Cobb

Quote from: Zetetic on May 12, 2021, 04:57:02 PM
Nah, Java and JavaScript are almost completely unrelated (confusingly).

I remain surprised no-one's rewritten "the ignore script" at this point, given how badly made it is.
There are far more fundamental problems, but doing:
                       
setDisplayNone(post, "avatar");
setDisplayNone(post, "post");
setDisplayNone(post, "keyinfo");
setDisplayNone(post, "reset");
setDisplayNone(post, "moderatorbar");
setDisplayNone(post, "quote_button");


Instead of something like:

for (element of ["avatar", "post", "etc"]){
    setDisplayNone(post, element);
}


Would result in an overnight stay in programmer jail if I had my way.

Famous Mortimer

Quote from: Barry Admin on May 12, 2021, 04:59:01 PM
I might just turn it on natively now. I remain unconvinced that people will use it. Site seems full of people constantly threatening to leave it these days, and I don't think CaB is the issue, I just think people have a different attitude to the net now.
Please do. I'm not sure I'd use it as much as I once did, but it'd be nice.

Blue Jam

Quote from: Barry Admin on May 12, 2021, 04:59:01 PM
I might just turn it on natively now. I remain unconvinced that people will use it. Site seems full of people constantly threatening to leave it these days, and I don't think CaB is the issue, I just think people have a different attitude to the net now.

I think it might be these Covidian times and cabin fever, people having more time to spend on here, fewer opportunities for escapism, and not wanting to see certain posters and discussions and topics. For me it's a bit like being unable to watch any current affairs broadcasting since Brexit. Or that time I wished there was a filter for Game of Thrones discussion on Facebook. Or hitting "mute" on the remote every time an advert mentions the 'vid.

Quote from: Barry Admin on May 12, 2021, 05:29:34 PM
Gimme half an hour or so and I'll switch it on for a trial run.

Wonderful, thanks.

Zetetic

Quote from: Sebastian Cobb on May 12, 2021, 05:29:46 PM
Would result in an overnight stay in programmer jail if I had my way.
It's possible that my first version of the script predates the for-of construction (not that this is really the point, alas).

But, yeah, I can't really defend that Zetetic.

greencalx

Quote from: Blue Jam on May 12, 2021, 05:31:40 PM
I think it might be these Covidian times and cabin fever, people having more time to spend on here, fewer opportunities for escapism, and not wanting to see certain posters and discussions and topics. For me it's a bit like being unable to watch any current affairs broadcasting since Brexit. Or that time I wished there was a filter for Game of Thrones discussion on Facebook. Or hitting "mute" on the remote every time an advert mentions the 'vid.

Wonderful, thanks.

Agree on both counts. I've often felt forum software should have a way to turn people done a bit, rather than off completely which seems a bit harsh but I think is necessary for me in a couple of cases to stop me lashing out and spoiling it for everyone else.

Sebastian Cobb

Quote from: Zetetic on May 12, 2021, 05:47:45 PM
It's possible that my first version of the script predates the for-of construction (not that this is really the point, alas).

But, yeah, I can't really defend that Zetetic.

Sorry I didn't realise it was you that wrote it, I feel mean now.

Zetetic

Don't!

I don't consider myself a programmer, and double-so not a JavaScript programmer and that was even the more case a decade or so ago.


touchingcloth

Quote from: Sebastian Cobb on May 12, 2021, 06:52:33 PM
Sorry I didn't realise it was you that wrote it, I feel mean now.

Quick, pretend you didn't mean "jail", but were talking about re-education camps instead.