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.

#FeatureRequests

Note by Megh Parikh
7 years, 2 months ago

No vote yet
1 vote

  Easy Math Editor

This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.

When posting on Brilliant:

  • Use the emojis to react to an explanation, whether you're congratulating a job well done , or just really confused .
  • Ask specific questions about the challenge or the steps in somebody's explanation. Well-posed questions can add a lot to the discussion, but posting "I don't understand!" doesn't help anyone.
  • Try to contribute something new to the discussion, whether it is an extension, generalization or other idea related to the challenge.
  • Stay on topic — we're all here to learn more about math and science, not to hear about your favorite get-rich-quick scheme or current world events.

MarkdownAppears as
*italics* or _italics_ italics
**bold** or __bold__ bold

- bulleted
- list

  • bulleted
  • list

1. numbered
2. list

  1. numbered
  2. list
Note: you must add a full line of space before and after lists for them to show up correctly
paragraph 1

paragraph 2

paragraph 1

paragraph 2

[example link](https://brilliant.org)example link
> This is a quote
This is a quote
    # I indented these lines
    # 4 spaces, and now they show
    # up as a code block.

    print "hello world"
# I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
MathAppears as
Remember to wrap math in \( ... \) or \[ ... \] to ensure proper formatting.
2 \times 3 2×3 2 \times 3
2^{34} 234 2^{34}
a_{i-1} ai1 a_{i-1}
\frac{2}{3} 23 \frac{2}{3}
\sqrt{2} 2 \sqrt{2}
\sum_{i=1}^3 i=13 \sum_{i=1}^3
\sin \theta sinθ \sin \theta
\boxed{123} 123 \boxed{123}

Comments

Way to take matters into your own hands!

Silas Hundt Staff - 7 years, 2 months ago

Log in to reply

@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 - 7 years, 2 months ago

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 - 7 years ago

Log in to reply

Thank you, now it works even in my mobile.

Megh Parikh - 7 years ago

Does it work on Chrome?

Shabarish Ch - 7 years, 2 months ago

Log in to reply

Tampermonkey for chrome

Megh Parikh - 7 years, 2 months ago

Installed it, and appears to work (or at least, I don't see any duplicate reshares yet).

Calvin Lin Staff - 7 years, 2 months ago

Very cool!

Kevin Mo - 7 years, 2 months ago

This userscript is really a big help, thanks

Rizky Riman - 7 years, 2 months ago

I have installed it, its very helpful..... THANKS A LOT!!!!!!!!!

Aman Bansal - 7 years, 2 months ago

What about IE?

Daniel Lim - 7 years, 2 months ago

Log in to reply

There must be something. But why use IE? Anyway search greasemonkey IE on google.

Megh Parikh - 7 years, 2 months ago

I can't open the link... any help??

Christopher Boo - 7 years ago

Log in to reply

There seems to be some problem with their site. Google revealed to change port number click here to open the link.

Megh Parikh - 7 years ago

Log in to reply

thanks, it's so awesome!

Christopher Boo - 7 years ago

Amazing

Archiet Dev - 7 years ago

Can't download. Any help?

Daniel Lim - 7 years ago

Log in to reply

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 - 7 years ago

Log in to reply

Chrome. Saw that reply before posting this.

Daniel Lim - 7 years ago

Found problem. Haven't installed TamperMonkey

Daniel Lim - 7 years ago
×

Problem Loading...

Note Loading...

Set Loading...