Jump to content

User talk:Asked42/LeadManager

Page contents not supported in other languages.
Add topic
From Wikinews, the free news source you can write!
Latest comment: 1 month ago by Asked42 in topic False positive on "today"

withJS

[edit]

Hello,

https://en.wikinews.org/w/index.php?title=User:Asked42/LeadManager#Lead_Manger_Form&withJS=User:Asked42/LeadManager.js

Why this not working? Says script not loaded. See mw:Snippets/Load_JS_and_CSS_by_URL and I kind of thought this was enabled at all wikis... Couldn't find it here though.

Thank you. Gryllida (talk) 08:02, 25 April 2025 (UTC)Reply

@Gryllida: You can add this code to your common.js to enable the script:
mw.loader.load('//en.wikinews.org/w/index.php?title=User:Asked42/LeadManager.js&action=raw&ctype=text/javascript');
-- Asked42 (talk) 13:21, 25 April 2025 (UTC)Reply
Well, I just noticed that you've already installed the script. I hope it's working for you. -- Asked42 (talk) 13:23, 25 April 2025 (UTC)Reply
Working fine thanks
Was asking about withJS because script only needed on one page, no need to load it on all pages Gryllida (talk) 20:45, 25 April 2025 (UTC)Reply
Well, I think I somehow missed your comment, and now it's pretty late. sorry about that. Regarding your question, the script will only loads on those pages that have id="lead-manager-container". -- Asked42 (talk) 19:32, 18 August 2025 (UTC)Reply

False positive on "today"

[edit]
Screenshot of false positive

I was trying to update a lead today and one of the first two sentences referenced USA Today and the script wouldn't let me proceed due to the presence of the word "today" (which normally would be a good thing). I wonder if we can make that specific check case-sensitive?

As a work-around, I removed the text to allow LeadManager to proceed then manually changed the lead. So no harm no foul.Michael.C.Wright (Talk/Reviewer) 02:29, 3 March 2026 (UTC)Reply

I have made some changes so that if time sensitive word is detected, the warning will no longer restrict further operations, and the "Start Update" button can still be clicked. The warning will now simply notify the user as a precaution.
I am currently not entirely sure how to accurately distinguish between false positives and genuinely time-sensitive words in all cases. So, as a temporary workaround, the warning will still be displayed, but if it is a false positive, the reviewer can choose to ignore it and proceed. --Asked42 (talk) 05:19, 3 March 2026 (UTC)Reply