Grammalecte  Check-in [4e27097134]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

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 2019-05-15 06:18:02
Context
2019-05-15
06:30
[fr] mise à jour du dictionnaire check-in: 07779d8b19 user: olr tags: fr, trunk
06:18
[fx] no exception for Twitter for now (doesn’t work anymore) check-in: 4e27097134 user: olr tags: fx, trunk
2019-05-14
20:37
[fr] faux positif check-in: 570387cc49 user: olr tags: fr, trunk
Changes

Changes to gc_lang/fr/webext/content_scripts/menu.js.

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')) {
            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";







|







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 (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";