Grammalecte  Check-in [4e27097134]

Overview
Comment:[fx] no exception for Twitter for now (doesn’t work anymore)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fx
Files: files | file ages | folders
SHA3-256: 4e27097134dc596d53f7ae1542e6c2f8517b90ea18f1ccaa130c51fdf5ccb40b
User & Date: olr on 2019-05-15 06:18:02
Other Links: manifest | tags
Context
2019-05-15
06:30
[fr] mise à jour du dictionnaire check-in: 07779d8b19 user: olr tags: trunk, fr
06:18
[fx] no exception for Twitter for now (doesn’t work anymore) check-in: 4e27097134 user: olr tags: trunk, fx
2019-05-14
20:37
[fr] faux positif check-in: 570387cc49 user: olr tags: trunk, fr
Changes

Modified gc_lang/fr/webext/content_scripts/menu.js from [3239a1b7a1] to [628a40a497].

32
33
34
35
36
37
38
39

40
41
42
43
44
45
46
32
33
34
35
36
37
38

39
40
41
42
43
44
45
46







-
+







        }
        this._listen();
    }

    _insert (xNewNode) {
        // insertion
        let xReferenceNode = this.xNode;
        if (document.location.host == "twitter.com" && this.xNode.classList.contains('rich-editor')) {
        if (this.xNode.classList.contains('rich-editor')) {
            xReferenceNode = this.xNode.parentNode;
        }
        xReferenceNode.parentNode.insertBefore(xNewNode, xReferenceNode.nextSibling);
        // offset
        let nNodeMarginBottom = parseInt(window.getComputedStyle(this.xNode).marginBottom.replace('px', ''), 10);
        let nMarginTop = (this.bShadow) ? -1 * nNodeMarginBottom : -1 * (8 + nNodeMarginBottom);
        xNewNode.style.marginTop = nMarginTop + "px";