User:PC-XT/Advisor.js: Difference between revisions

Content deleted Content added
should document which fork is in use, in case there is a problem
add ct.noDefaultRules property to turn off default rules completely
Line 607:
// * name---this is what appears at the top of the page
// * description---used as a tooltip for the name of the suggestion
 
// The rules are stored in an array:
ct.rules = ct.rules||[]; // : Function[]
// and are grouped into categories.
 
// The set of rules to apply depends on the content language. Different
Line 614 ⟶ 618:
// Wikipedia.
 
if (!ct.noDefaultRules && (!window.wgContentLanguage || (window.wgContentLanguage === 'en'))) { // switch to turn off default rules for replacement by custom ones // from this line on, a level of indent is spared
 
// The rules are stored in an array:
ct.rules = ct.rules||[]; // : Function[]
// and are grouped into categories.
 
// === Linking rules ===
Line 1,480:
});
 
} // end if (window.wgContentLanguage === 'en') // end of default rules