novemlinguae / userscripts Goto Github PK
View Code? Open in Web Editor NEWNovem Linguae's Wikipedia user scripts
Home Page: https://en.wikipedia.org/wiki/User:Novem_Linguae/Templates/Scripts
Novem Linguae's Wikipedia user scripts
Home Page: https://en.wikipedia.org/wiki/User:Novem_Linguae/Templates/Scripts
https://en.wikipedia.org/w/index.php?title=Talk:2021_United_States_Capitol_attack&oldid=1063466811
In this example, bunch of bolded vote words in the {{Old moves}} template that are showing up as votes.
https://en.wikipedia.org/w/index.php?title=Spatalla_mollis&diff=1066664748&oldid=1066512143 - This diff adds 1 space. Running AddTaxobox again adds a second space. Should be consistent.
Maybe "See username children" and "See username parent"
Test pages:
Algorithm:
Results:
Failed my spot checks on 12/06/21 and 12/07/21. But not always failing. Race condition?
scripts with a bunch of string in, string out functions executed in order are just begging for unit tests
Lots of false positives in newspaper article names
I have a list somewhere of promising WikiProject reliable sources lists
This should both display the Add Taxobox link, and work when clicked.
https://en.wikipedia.org/w/index.php?title=Genustest_speciestest&action=edit&redlink=1
Use the "article in other language" links at [[WP:RSP]] for more links
is there a better workflow, such as 1) get wikitext or HTML, 2) isolate usernames, 3) one API query for multiple username's perms and edit count, 4) then highlight? instead of downloading this giant list on every page? this would make UserHighlighterSimple work on other wikis too
This userscript goes through a page and gets all the usernames, does stuff, then styles their links. Copy this: https://en.wikipedia.org/wiki/User:GeneralNotability/mark-locked.js
Tier 1 is [[WP:ANYBIO]] pass
https://en.wikipedia.org/wiki/User:Necrothesp/Notability_criteria_for_recipients_of_honours
https://en.wikipedia.org/w/index.php?title=Liolaemus_kolengh&oldid=1066335414
Articles like this should get a stub but are not, because reptile-stub is not the same as reptilia, iguana-stub is not the same as iguania, etc.
Figure out a way to crawl all featured articles and make a pivot table of their citation's domain names.
The top results, add those to CiteHighlighter as reliable.
This will get a bunch of domains that aren't listed on other lists, but that are commonly used.
A bot flag gives extended confirmed permissions without being extended confirmed. And probably turns off auto awarding of extended confirmed. So these bots should get a color before reaching 10,000 edits.
And any other subpages of Wikipedia:Articles for deletion that aren't AFD nominations
Such as the main page.
Or on template protected pages if you are not a template editor.
Or on ECP protected pages if you are not ECP.
• - DraftCleaner - fix bug involving <ref>abc [external link] abc</ref>
turning into <ref><ref></ref></ref>
• - DontForgetG12 - fix bug involving uncurated article detection, or figure out how to query the database
Failed my spot check on 12/07/21. Still an issue. Race condition?
Example: https://en.wikipedia.org/w/index.php?title=Rugoconites_tenuirugosus&oldid=1066465530
Should keep {{Edicarian-stub}} and also add {{Holozoa-stub}}
You don't need revisions, just response.query.pages[n] will have missing if missing (and also known if it's a file on Commons or a user page on Meta that exists). Nardog (talk) 16:28, 27 December 2021 (UTC)
So pages never get de-queued. They will get indexed by Google after 3 months, but remain in the NPP queue. The page curation toolbar still pops up too. So might as well also pop up the copyvio check button.
Assuming they really do fall out of the queue. Still not clear how falling out of the queue works.
• - make sure old pages don't trigger it. old pages won't have any curation. && creation_date within "last 6 months". action=query&list=logevents&letype=patrol
This is a good way to prevent AddTaxobox from running on non-species articles.
https://en.wikipedia.org/w/index.php?title=Palaegithalus_cuvieri&oldid=1066907706
Refactor the wikicode =
part of the program to all be one function, with the API results as inputs. That way the function itself has no dependencies or API calls.
probably need to split the program into "safe" and "aggressive", with two different links. for aggressive, use preview/diff
Update NPPSG dictionary.
Then turn on aggressive highlighting, go through WP:RSP, and make sure everything is still sync'd up correctly.
There should be some new RFCs there that are not reflected on the list. For example, Jacobin.
https://meta.wikimedia.org/wiki/Requests_for_comment/Stop_accepting_cryptocurrency_donations#Voting
They have a couple of bolded votes, but mainly template votes. Need to refactor VoteCounter to also detect template votes. Examples:
Will also need to detect synonyms. ss, strong support, s, and support all translate to support. Should sum them together and just display "support"
Example: {{Myriadpod-stub}} and {{Myriapoda-stub}}
Will need a dictionary to recognize these. Related #45
https://en.wikipedia.org/w/index.php?title=Bollmaniulus_catalinae&oldid=1065790269
implement caching. https://www.mediawiki.org/wiki/API:Caching_data
o - UserHighlighterSimple - 5 seconds for the XHR request, 300ms for the script execution time
https://en.wikipedia.org/wiki/Wikipedia_talk:User_scripts/Archive_6#Uncaught_TypeError
User:Novem Linguae/Scripts/UserHighlighterSimple.js
Uncaught TypeError: Cannot read property 'apply' of undefined
at Object.add (:612:407)
at index.php?title=User:Novem_Linguae/Scripts/UserHighlighterSimple.js&action=raw&ctype=text/javascript:7
This bug has absolutely no effect on my user script's functionality. But it throws that warning in the browser console on every page load. Any idea how to fix it? I forked some of this code so I am not too familiar with mw.hook, $.when, etc. Thanks. –Novem Linguae (talk) 05:55, 8 July 2021 (UTC)
@Novem Linguae: mw.hook('wikipage.content').add(...) is doing nothing. Since you're executing the function (function($, mw){...}) instead of passing it as a handler, the function is executed only once as soon as the script is loaded. I would change line 7 to mw.hook('wikipage.content').add(function($content){, 83 to $content.find('a').each(function(index,linkraw){, and 177 to });, and move line 7 to after line 37 (so that the JSON fetches would be done only once, not every time wikipage.content is fired). Nardog (talk) 21:21, 16 July 2021 (UTC)
Nardog, the line 7 and 177 changes fixed the error. Awesome. The line 83 change made the script stop highlighting. I'll dig into the line 83 suggestion, and the swap 7 and 37 suggestion soon. Thank you very much for your help. –Novem Linguae (talk) 23:04, 16 July 2021 (UTC)
Weird, this revision totally works for me. Also, get mw.util.addCSS() out of the handler, or the style tags will be added every time wikipage.content is fired. If you use mw.loader.addStyleTag() you don't even have to declare a dependency (also, why add a tag for each rule instead of just one tag for all?). And I don't think it's appropriate to put the client-error opt-out (or any experimental code for that matter) in a script that's been imported by others. Nardog (talk) 00:07, 17 July 2021 (UTC)
"is a species of" -hastemplate:Taxonbar -virus
"is a species of" -hastemplate:Speciesbox -hastemplate:Taxobox -hastemplate:Subspeciesbox -virus
species intitle:" " -hastemplate:Taxonbar
• - hit the AFC queue and run DraftCleaner on everything. get it solid enough to almost never have a bug.
rewrite this and NovemBot Task A to pull all data from 1 file, instead of multiple files
Less copy pasting
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.