Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Yes
- // @namespace http://blockbuster.xp3.biz/
- // @version 1.1.3
- // @description Lol
- // @author Ha#3097
- // @match https://disboard.org/dashboard/servers
- // @icon https://i.imgur.com/mhLnHnE.png
- // @grant none
- // ==/UserScript==
- var ID = "619242582823927808";
- var d = new Date(),
- h = (d.getHours()<10?'0':'') + d.getHours(),
- m = (d.getMinutes()<10?'0':'') + d.getMinutes(),
- s = (d.getSeconds()<10?'0':'') + d.getSeconds();
- Object.defineProperty(document, "hidden", { value : false});
- $(".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>");
- $(".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>");
- var grabbedmin = document.querySelector("[href='/server/bump/" + ID + "']").textContent.replace(/\D/g, '') * 60
- function bump() {
- window.location.href = "https://disboard.org/server/bump/" + ID;
- }
- String.prototype.toHHMMSS = function () {
- var sec_num = parseInt(this, 10);
- var hours = Math.floor(sec_num / 3600);
- var minutes = Math.floor((sec_num - (hours * 3600)) / 60);
- var seconds = sec_num - (hours * 3600) - (minutes * 60);
- if (hours < 10) {hours = "0"+hours;}
- if (minutes < 10) {minutes = "0"+minutes;}
- if (seconds < 10) {seconds = "0"+seconds;}
- return hours+':'+minutes+':'+seconds;
- }
- function run(fn) {
- if(typeof(Worker) !== "undefined") {
- if(typeof(w) == "undefined") {
- w = new Worker(URL.createObjectURL(new Blob(['('+fn+')()'])));
- }
- w.onmessage = function(event) {
- if (isNaN(grabbedmin)) {
- bump()
- }
- var numberwow = event.data + ''
- var numberwoah = Number(grabbedmin) - numberwow + 60
- var numbeee = numberwoah.toString()
- document.getElementById("bumpcount").innerHTML = "albert = maybe funny: " + numbeee.toHHMMSS();
- if (numberwow == grabbedmin + 60) {
- bump()
- }
- };
- } else {
- alert("Dont Work Bruh");
- }
- }
- const worker = run(function() {
- var i = 0;
- function timedCount() {
- i = i + 1;
- postMessage(i);
- setTimeout(function(){timedCount()},1000);
- }
- timedCount();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement