js/background.js
/* MutationObserver configuration data: Listen for "childList"
/* Traverse 'rootNode' and its descendants and modify '<a>' tags */
MutationObserver configuration data: Listen for "childList"
Traverse 'rootNode' and its descendants and modify '' tags
MutationObserver configuration data : Listen for " childList " Traverse ' rootNode ' and its descendants and modify ' ' tags
function modifyLinks(rootNode) {
    answers_div = [];
    app.g_stack_link_count = 0;
    var nodes = [rootNode];
    while (nodes.length > 0) {
        var node = nodes.shift();
        if (node.tagName == "A") {
            if (app.Utils.valid_link(node)) {
                href = node.href.replace('http://', 'https://');
                app.g_stack_link_count += 1;
                if (f) {
                    var elem = document.createElement('div')
                    elem.className = "_loader_";
                    elem.id = 'typingLoad';
                    elem.innerHTML = "<div></div>"
                    $('#rhs').append(elem)
                    f = false
                }
                app.ANSWERS.show_answers(node, href);
            }
        } else {
            [].slice.call(node.children).forEach(function(childNode) {
                if (childNode.tagName != "SCRIPT") {
                    nodes.push(childNode);
                }
            });
        }
    }
    app.TRACKER.event('event', 'stack_links', app.g_stack_link_count + '', 'stack_links')
}
function modifyLinks ( rootNode ) { answers_div = [ ] ; app . g_stack_link_count = 0 ; var nodes = [ rootNode ] ; while ( nodes . length > 0 ) { var node = nodes . shift ( ) ; if ( node . tagName == "A" ) { if ( app . Utils . valid_link ( node ) ) { href = node . href . replace ( 'http://' , 'https://' ) ; app . g_stack_link_count += 1 ; if ( f ) { var elem = document . createElement ( 'div' ) elem . className = "_loader_" ; elem . id = 'typingLoad' ; elem . innerHTML = "<div></div>" $ ( '#rhs' ) . append ( elem ) f = false } app . ANSWERS . show_answers ( node , href ) ; } } else { [ ] . slice . call ( node . children ) . forEach ( function ( childNode ) { if ( childNode . tagName != "SCRIPT" ) { nodes . push ( childNode ) ; } } ) ; } } app . TRACKER . event ( 'event' , 'stack_links' , app . g_stack_link_count + '' , 'stack_links' ) }
MutationObserver configuration data: Listen for "childList"
Traverse 'rootNode' and its descendants and modify '<a>' tags
MutationObserver configuration data : Listen for " childList " Traverse ' rootNode ' and its descendants and modify ' <a > ' tags
/* Modify the '<a>' element */ /* If the current node has children, queue them for further
             * processing, ignoring any '<script>' tags. */