Waste less time on Facebook — follow Brilliant.
×

Stop Displaying Multiple Reshares on Brilliant

Hey I created a userscript to do this

Check it here :http://userscripts.org/scripts/show/436613

OR

Check it here :http://userscripts.org:8080/scripts/show/436613

To install it you need to install GreaseMonkey on Firefox or TamperMonkey on Chrome.

Note by Megh Parikh
3 years ago

No vote yet
1 vote

Comments

Sort by:

Top Newest

Way to take matters into your own hands! Silas Hundt Staff · 2 years, 12 months ago

Log in to reply

@Silas Hundt @Silas Hundt @Suyeon Khim Can this piece of code be integrated in the site so it works for mobile devices also as they dont have GreaseMonkey (You may add an option in Profile Settings to disable it). Here is the code which should be executed after each AJAX call (I executed it after change in document height).

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
    var index=0,tr=[];
    function hideMultipleReshares()
    {
        var allElements = document.getElementsByClassName('nf-feed-item-wrapper modal-feed-item');

        for (var i = index; i < allElements.length; i++)
        {    
            if (allElements[i].hasAttribute('data-modal-url')) {
                var x = allElements[i].getAttribute('data-modal-url') .split('?') [0];
                if (tr.indexOf(x) === - 1)
                {
                    tr.push(x);
                } 
                else allElements[i].parentNode.parentNode.style.display = 'none';
                //Not sure whether to hide or remove DOM node
            }
        }index=allElements.length;
    } 

If you want I will comment the code. Megh Parikh · 2 years, 12 months ago

Log in to reply

We now de-duplicate items on our servers which means less data needs to be transferred to your computer so everyone should get the benefits of the javascript snippet in a more efficient manner. Sam Solomon Staff · 2 years, 10 months ago

Log in to reply

@Sam Solomon Thank you, now it works even in my mobile. Megh Parikh · 2 years, 10 months ago

Log in to reply

Does it work on Chrome? Shabarish Ch · 2 years, 12 months ago

Log in to reply

@Shabarish Ch Tampermonkey for chrome Megh Parikh · 2 years, 12 months ago

Log in to reply

Can't download. Any help? Daniel Lim · 2 years, 10 months ago

Log in to reply

@Daniel Lim Found problem. Haven't installed TamperMonkey Daniel Lim · 2 years, 10 months ago

Log in to reply

@Daniel Lim Which browser are you using? Also if the link isn't opening check my reply to Christopher Boo. There is some problem with their site. Megh Parikh · 2 years, 10 months ago

Log in to reply

@Megh Parikh Chrome. Saw that reply before posting this. Daniel Lim · 2 years, 10 months ago

Log in to reply

Amazing Archiet Dev · 2 years, 10 months ago

Log in to reply

I can't open the link... any help?? Christopher Boo · 2 years, 10 months ago

Log in to reply

@Christopher Boo There seems to be some problem with their site. Google revealed to change port number click here to open the link. Megh Parikh · 2 years, 10 months ago

Log in to reply

@Megh Parikh thanks, it's so awesome! Christopher Boo · 2 years, 10 months ago

Log in to reply

What about IE? Daniel Lim · 2 years, 12 months ago

Log in to reply

@Daniel Lim There must be something. But why use IE? Anyway search greasemonkey IE on google. Megh Parikh · 2 years, 12 months ago

Log in to reply

I have installed it, its very helpful..... THANKS A LOT!!!!!!!!! Aman Bansal · 2 years, 12 months ago

Log in to reply

This userscript is really a big help, thanks Rizky Riman · 2 years, 12 months ago

Log in to reply

Very cool! Kevin Mo · 2 years, 12 months ago

Log in to reply

Installed it, and appears to work (or at least, I don't see any duplicate reshares yet). Calvin Lin Staff · 2 years, 12 months ago

Log in to reply

×

Problem Loading...

Note Loading...

Set Loading...