Skip to content

Commit

Permalink
Update auto.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Dounford-Felipe committed Nov 18, 2023
1 parent 9ba8a02 commit b0a8a9e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions auto.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name DHM - Idle Again
// @namespace http://tampermonkey.net/
// @version 1.4.5.1
// @version 1.4.5.2
// @description Automate most of DHM features
// @author Felipe Dounford
// @require https://greasyfork.org/scripts/461221-hack-timer-js-by-turuslan/code/Hack%20Timerjs%20By%20Turuslan.js?version=1159560
Expand Down Expand Up @@ -2171,6 +2171,7 @@ const chatSend = () => {
window.sendChat = chatSend

const showMessage = (msg, sender) => {
if (msg.startsWith('https') || msg.startsWith('www')) {msg = '<a href='+msg+' target="_blank">'+msg+'</a>'}
var messageContainer = document.createElement('div');
var senderElement = document.createElement('strong');
senderElement.innerText = sender + ": ";
Expand Down Expand Up @@ -2230,8 +2231,9 @@ const publishMessage = async (message) => {
await pubnub.publish(publishPayload);
}

setupPubNub();

window.onload = function() {
setupPubNub();
$(function() {
$("#sortableSeeds").sortable({
update: function(event, ui) {saveSeedOrder()}
Expand Down

0 comments on commit b0a8a9e

Please sign in to comment.