PageSourceSearch

https://dbatley.com/opennic.js

js dbatley.com collected 2026-10-02 07:39:10 UTC 836 bytes, 26 lines download raw bytes

1window.addEventListener("load", function () {
2	var each = function (l, f) {
3		for (var i = 0; i < l.length; ++i) {
4			f(l[i]);
5		}
6	};
7	var disable_opennic_popup = function () {
8		return false;
9	}
10	var disable_opennic = function () {
11		each(document.getElementsByClassName("opennic"), function (span) {
12			span.className += " disabled";
13			each(span.getElementsByTagName("a"), function (a) {
14				a.onclick = disable_opennic_popup;
15				a.title = "Only available when using opennic as your dns resolver.";
16			});
17		});
18	};
19	if (window.location.protocol == "http:") { // mixed mode when using https
20		var request = new XMLHttpRequest();
21		request.open('GET', 'http://www.compar.ing/opennic-test', true);
22		request.addEventListener("error", disable_opennic);
23		request.addEventListener("abort", disable_opennic);
24		request.send();  
25	}
26});

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.