Re: Is there a way to refuse changes?

Skip to first unread message

Rafael Weinstein

Jan 8, 2015, 4:18:09 PM1/8/15
No, there is no way to "reject" a change. You can attempt to undo the change by making further changes, but that is up to you to accomplish.

On Thu, Jan 8, 2015 at 7:53 AM, Ole Albers <> wrote:

Scenario: Chrome Extension listens on content changes of a specific website.

When the Website adds a DIV with a specific class I want to reject that change and/or add additional content to that DIV.

I did not find a way to achieve this. This is my example code:

var observer = new MutationObserver(function (mutations) {
        mutations.forEach(function (mutation) {
            [] (addedNode) {


    observer.observe(document, {
        childList: true,

function StartFilter(newNode) {

the content inside "newNode" is hidden but that does not appear to have any effect on the site itself.

You received this message because you are subscribed to the Google Groups "mutation-summary-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

Reply all
Reply to author
0 new messages