PageSourceSearch

http://www.prostoy.ru/spellcheck/spellcheck.js

js prostoy.ru collected 2026-09-26 06:56:27 UTC 1,316 bytes, 52 lines download raw bytes

1(function spellcheck() {
2	function gs() { // get selection
3		var t = "";
4		if (window.getSelection) {
5			t = window.getSelection().toString();
6		} else if (document.selection && document.selection.type != "Control") {
7			t = document.selection.createRange().text;
8		}
9		return t;
10	}
11
12	function se(t) { // send error
13		if (t.length < 3) {
14			alert("Вы не выбрали текст");
15		} else if (t.length > 350) {
16			alert("Слишком много текста, выберите меньше");
17		} else {
18			var message = prompt("Пожалуйста, укажите в чем ошибка");
19			if (message !== null) {
20				if (message.length === 0) {
21					alert("Пожалуйста, введите сообщение");
22					se(gs());
23				} else {
24					$.ajax({
25						url: "/spellcheck/spellcheck.php",
26						type: "POST",
27						data: {
28							url: location.href,
29							error: t,
30							message: message
31						},
32                        dataType: "json"
33					}).done(function (data) {
34						if (data.result === "ok") {
35							alert(data.message);
36						} else {
37							alert(data.error);
38						}
39					}).fail(function () {
40						alert("Произошла ошибка");
41					});
42				}
43			}
44		}
45	}
46
47	jQuery(document).keydown(function (e) {
48		if (e.keyCode == 13 && e.ctrlKey) {
49			se(gs());
50		}
51	});
52})();

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.