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     32           }
    33     33           this._listen();
    34     34       }
    35     35   
    36     36       _insert (xNewNode) {
    37     37           // insertion
    38     38           let xReferenceNode = this.xNode;
    39         -        if (document.location.host == "twitter.com" && this.xNode.classList.contains('rich-editor')) {
           39  +        if (this.xNode.classList.contains('rich-editor')) {
    40     40               xReferenceNode = this.xNode.parentNode;
    41     41           }
    42     42           xReferenceNode.parentNode.insertBefore(xNewNode, xReferenceNode.nextSibling);
    43     43           // offset
    44     44           let nNodeMarginBottom = parseInt(window.getComputedStyle(this.xNode).marginBottom.replace('px', ''), 10);
    45     45           let nMarginTop = (this.bShadow) ? -1 * nNodeMarginBottom : -1 * (8 + nNodeMarginBottom);
    46     46           xNewNode.style.marginTop = nMarginTop + "px";