AO3 WordCount v1.2.0
Replace \w with [\p{Letter}\p{Mark}\p{Number}\p{Connector_Punctuation}] in the regular expession as that is the proper JavaScript equivalent to Ruby's [[:word:]]. Add support for most Unicode scripts supported in regular expressions. Use Array.from() instead of the spread syntax to convert the RegExpStringIterator into a countable array. Add ://archiveofourown.org/*chapters/ as a @match rule so that the script can work on URLs such as https://archiveofourown.org/chapters/141182779. Add ://archiveofourown.org/*works//navigate as an @exclude rule so the script does not run on the index page.