User:HarJIT/Scripts/unicategorise.js: Difference between revisions

Content deleted Content added
No edit summary
m Fix requested on WP:IANB
 
(5 intermediate revisions by 2 users not shown)
Line 1:
// <nowiki>
// Adjust chset-* style code chart colouration to match Unicode categories.
// Adds a button below the source editor.
Line 9 ⟶ 10:
// Furthermore, this loads JavaScript code from a third-party source for identifying Unicode character
// category. I cannot guarantee that this will not be compromised. Proceed at your own risk.
//
// Good place to look: https://en.wikipedia.org/wiki/Special:WhatLinksHere/Template:Chset-color-intl?hidelinks=1
//
// Usage: mw.loader.load("//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:HarJIT/Scripts/unicategorise.js");
Line 41 ⟶ 40:
 
var ezh = null;
jQuery.get("https://cdn.rawgitjsdelivr.comnet/gh/slevithan/xregexp/7a168874@57f919a3ebc58ea2f56cb5b2391b6151483b1709/tools/output/categories.js", (b) => {
b = b.pysplit("=", 1)[1].trim();
if (b.endswith(";")) {
Line 240 ⟶ 239:
 
// End: [[m:w:User:HarJIT/Scripts/unicategorise.js]]
// </nowiki>