Grammalecte  Check-in [c570e3542a]

Overview
Comment:[fx] Twitter exception for node selection
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fx
Files: files | file ages | folders
SHA3-256: c570e3542a81ced3b0323822b6212b0539bf56e529cbd264e6c19ca4d4915061
User & Date: olr on 2020-08-08 15:46:15
Other Links: manifest | tags
Context
2020-08-09
07:41
[fr] ajustements check-in: 07ff9eb158 user: olr tags: trunk, fr
2020-08-08
15:46
[fx] Twitter exception for node selection check-in: c570e3542a user: olr tags: trunk, fx
14:39
[build][core] code cleaning: useless function check-in: 7bad62afc4 user: olr tags: trunk, core, build
Changes

Modified gc_lang/fr/webext/content_scripts/init.js from [d6a977e5a7] to [08632c810a].

186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
        }
    },

    findOriginEditableNode: function (xNode) {
        if (!xNode) {
            return null;
        }
        if (xNode.tagName == "TEXTAREA" || xNode.tagName == "INPUT" || xNode.tagName == "IFRAME") {
            return xNode;
        }
        const findNode = function (xNode) {
            return (!xNode.parentNode.isContentEditable) ? xNode : findNode(xNode.parentNode);
        }
        return findNode(xNode);
    },







|







186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
        }
    },

    findOriginEditableNode: function (xNode) {
        if (!xNode) {
            return null;
        }
        if (xNode.tagName == "TEXTAREA" || xNode.tagName == "INPUT" || xNode.tagName == "IFRAME" || document.location.host == "twitter.com") {
            return xNode;
        }
        const findNode = function (xNode) {
            return (!xNode.parentNode.isContentEditable) ? xNode : findNode(xNode.parentNode);
        }
        return findNode(xNode);
    },