PageSourceSearch

https://timecrowd.net/lp-assets/javascripts/target-blank-fix.js?v=20260304

js timecrowd.net collected 2026-10-02 04:56:42 UTC 1,722 bytes, 81 lines download raw bytes

1var is_login_l = false;
2var is_login_m = false;
3var is_login_s = false;
4var is_register = false;
5
6function fixLoginHref(el) {
7  el.removeAttribute("target");
8  var href = el.getAttribute("href");
9  if (href) {
10    try {
11      var url = new URL(href);
12      url.host = location.host;
13      url.protocol = location.protocol;
14      el.setAttribute("href", url.toString());
15    } catch (e) {}
16  }
17}
18
19var timer = setInterval(function () {
20  var login_l = document.getElementById("login_l");
21  var login_m = document.getElementById("login_m");
22  var login_s = document.getElementById("login_s");
23  var inquiry_l = document.getElementById("inquiry_l");
24  var inquiry_s = document.getElementById("inquiry_s");
25  var document_l = document.getElementById("document_l");
26  var document_s = document.getElementById("document_s");
27  var register = document.getElementById("register");
28
29  if (login_l) {
30    fixLoginHref(login_l);
31    is_login_l = true;
32  }
33
34  if (login_m) {
35    fixLoginHref(login_m);
36    is_login_m = true;
37  }
38
39  if (login_s) {
40    fixLoginHref(login_s);
41    is_login_s = true;
42  }
43
44  if (register) {
45    register.removeAttribute("target");
46    is_register = true;
47  }
48
49  if (inquiry_l) {
50    inquiry_l.removeAttribute("target");
51    inquiry_l = true;
52  }
53
54  if (inquiry_s) {
55    inquiry_s.removeAttribute("target");
56    inquiry_s = true;
57  }
58
59  if (document_l) {
60    document_l.removeAttribute("target");
61    document_l = true;
62  }
63
64  if (document_s) {
65    document_s.removeAttribute("target");
66    document_s = true;
67  }
68
69  if (
70    is_login_l &&
71    is_login_m &&
72    is_login_s &&
73    is_register &&
74    inquiry_l &&
75    inquiry_s &&
76    document_l &&
77    document_s
78  ) {
79    clearInterval(timer);
80  }
81}, 100);

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.