PageSourceSearch

https://www.sharpeproducts.com/FormWizard/js/BadWordValidation.js

js sharpeproducts.com collected 2026-10-07 19:43:11 UTC 1,032 bytes, 35 lines download raw bytes

1function badWordValidator(source, args) {
2	//args.IsValid=false;
3	var data = { StringToCheck: args.Value };
4	//if (args.Value.length > 200) return;
5	var response;
6	var xhr = new XMLHttpRequest();
7	//xhr.addEventListener('readystatechange', function() {
8	//	if (this.readyState === 4)
9	//	{
10	//		response = this.responseText;
11	//		//console.log(this.responseText);
12	//		if (this.responseText == 'true')
13	//		{
14	//			args.IsValid = false;
15	//			console.log(args);
16	//			extendedValidatorUpdateDisplay(source);
17	//		}
18	//	}
19	//});
20	xhr.open('POST', '/BadWord/CheckString', false);
21	xhr.setRequestHeader('Content-Type', 'application/json');
22	xhr.onload = function () {
23		if (this.readyState === 4) {
24			response = this.responseText;
25			//console.log(this.responseText);
26			if (this.responseText == 'true') {
27				args.IsValid = false;
28				console.log(args);
29				extendedValidatorUpdateDisplay(source);
30			}
31		}
32	};
33	xhr.send(JSON.stringify(data));
34	if (response == 'true') { args.IsValid = false; }
35}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.