Advertisement
Rozu

Untitled

Dec 9th, 2019
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.23 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Yes
  3. // @namespace http://blockbuster.xp3.biz/
  4. // @version 1.1.3
  5. // @description Lol
  6. // @author Ha#3097
  7. // @match https://disboard.org/dashboard/servers
  8. // @icon https://i.imgur.com/mhLnHnE.png
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12.  
  13. var ID = "619242582823927808";
  14.  
  15.  
  16.  
  17. var d = new Date(),
  18. h = (d.getHours()<10?'0':'') + d.getHours(),
  19. m = (d.getMinutes()<10?'0':'') + d.getMinutes(),
  20. s = (d.getSeconds()<10?'0':'') + d.getSeconds();
  21.  
  22. Object.defineProperty(document, "hidden", { value : false});
  23.  
  24. $(".navbar-item:last-of-type").replaceWith("<a href=\"\/partners\" class=\"navbar-item\" title=\"Partners\">\r\n <span class=\"icon\"><span class=\"icon-heart\"><\/span><\/span>\r\n <span class=\"text\">Partners<\/span>\r\n <\/a><a class=\"navbar-item\" id=\"bump\" title=\"Noob\">\r\n <span class=\"icon\"><span class=\"icon-robot\"><\/span><\/span>\r\n <span style=\"background-image: linear-gradient(to left, orange, red);\r\n -webkit-background-clip: text;\r\n -webkit-text-fill-color: transparent;\" class=\"text\" id=\"bumpcount\" >Noob Enabled: 00:00:00<\/span>\r\n <\/a>");
  25. $(".tabs ul li:last-of-type").replaceWith("<li>\r\n <a href=\"\/dashboard\/settings\">\r\n <span class=\"icon is-small\"><i class=\"icon-gear\"><\/i><\/span>\r\n <span>Settings<\/span>\r\n <\/a>\r\n <\/li><li style=\"margin-left: auto;\" title=\"" + d + "\">\r\n <a>\r\n <span class=\"icon is-small\"><i class=\"icon-sync\"><\/i><\/span>\r\n <span>Page Loaded: " + h + ':' + m + ':' + s + "<\/span>\r\n <\/a>\r\n <\/li>");
  26.  
  27. var grabbedmin = document.querySelector("[href='/server/bump/" + ID + "']").textContent.replace(/\D/g, '') * 60
  28.  
  29. function bump() {
  30. window.location.href = "https://disboard.org/server/bump/" + ID;
  31. }
  32.  
  33. String.prototype.toHHMMSS = function () {
  34. var sec_num = parseInt(this, 10);
  35. var hours = Math.floor(sec_num / 3600);
  36. var minutes = Math.floor((sec_num - (hours * 3600)) / 60);
  37. var seconds = sec_num - (hours * 3600) - (minutes * 60);
  38.  
  39. if (hours < 10) {hours = "0"+hours;}
  40. if (minutes < 10) {minutes = "0"+minutes;}
  41. if (seconds < 10) {seconds = "0"+seconds;}
  42. return hours+':'+minutes+':'+seconds;
  43. }
  44.  
  45. function run(fn) {
  46. if(typeof(Worker) !== "undefined") {
  47. if(typeof(w) == "undefined") {
  48. w = new Worker(URL.createObjectURL(new Blob(['('+fn+')()'])));
  49. }
  50. w.onmessage = function(event) {
  51. if (isNaN(grabbedmin)) {
  52. bump()
  53. }
  54. var numberwow = event.data + ''
  55. var numberwoah = Number(grabbedmin) - numberwow + 60
  56. var numbeee = numberwoah.toString()
  57. document.getElementById("bumpcount").innerHTML = "albert = maybe funny: " + numbeee.toHHMMSS();
  58. if (numberwow == grabbedmin + 60) {
  59. bump()
  60. }
  61. };
  62. } else {
  63. alert("Dont Work Bruh");
  64. }
  65. }
  66.  
  67. const worker = run(function() {
  68.  
  69. var i = 0;
  70.  
  71. function timedCount() {
  72. i = i + 1;
  73. postMessage(i);
  74. setTimeout(function(){timedCount()},1000);
  75. }
  76.  
  77. timedCount();
  78. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement