The code for script detection

Fragment of a discussion from User talk:Rua

It's now in Module:scripts.

CodeCat12:31, 13 August 2015