User:SoledadKabocha/linkclassifier2
From Wikipedia, the free encyclopedia
Since I value your privacy, I have no linkback policy, unlike Anomie. That means you do not need to put // [[User:SoledadKabocha/linkclassifier2.js]] anywhere in your user skin. (Don't use // [[User:Anomie/linkclassifier.js]] either, as that would be misleading to Anomie.)
- TODO: Actually copy relevant information from User:SoledadKabocha/linkclassifier rather than just noting the changes. Then soft-redirect that page here.
Instead, I encourage you to talk about any questions and comments either here or on my main user talk page.
Changes from User:SoledadKabocha/linkclassifier
- Articles with correspondingly-named drafts are detected (
has-draftclass) per Anomie's original script. - New boolean preferences:
window.LinkClassifierIgnoreRedirectedFrom,window.LinkClassifierSkipDraftDetection,window.LinkClassifierAddPortletLinkManually,window.LinkClassifierJsMessageOnError(Names should be self-explanatory; default is false for all exceptwindow.LinkClassifierJsMessageOnError) TheNowredirect-grammaticalnumberclass has been renamed tounprintworthy-assoc(that is, "associated with unprintworthy status") and also includes Category:Redirects from other capitalisations.incorrect-titleper the original linkclassifier- The following status variables, which were formerly global (
windowproperties), have been moved to properties of theLinkClassifierobject. This affects you if you are reading these properties in other scripts frommw.notifyor otherwise. No compatibility shims (aliases) are provided; you must update your script.LinkClassifier.requestsOutstanding(waswindow.LinkClassifierApiRequestsOutstanding)LinkClassifier.oldOnbeforeunload(waswindow.LinkClassifierOldOnbeforeunload)LinkClassifier.unloadHandlerRemoved(waswindow.LinkClassifierUnloadHandlerRemoved)
- Error messages no longer name the function that triggered the failed request, since modern browsers' built-in developer tools should be sufficient to find that information.
- The
uncategorizedclass, which by definition follows redirects to their targets (unlikeredir-uncategorized), now works more or less correctly. Itis always enabled, that is, not controlled by any preference. If you don't care, simply don't add a CSS rule. Edit: It at some point started experiencing a noticeable rate of false positives again, probably related to one batch of API requests finishing before the next one is ready to start; I wouldn't really call it "more or less correctly."
Features to consider
- Regarding page properties, decide whether
has-props(orhas-any-props?) andno-propsclasses might be useful.