Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
WIP on less sublte effect. #24
Conversation
gregglind
requested a review
from
biancadanforth
Dec 8, 2017
gregglind
added some commits
Dec 8, 2017
| - - ending is `notification-x` | ||
| + `npm run eslint` |
pdehaan
Dec 8, 2017
Contributor
I think we still need to fix the parent npm run lint uber-test, since that failed when I checked earlier.
| + 1. Preference FALSE :: no `X_1057` header. | ||
| + - refresh https://www.whatismybrowser.com/detect/what-http-headers-is-my-browser-sending | ||
| + - Confirm that `X_1057` is NOT in the list | ||
| + - refresh XHOUSE |
| @@ -54,11 +59,18 @@ function findAndReplace(wordList) { | ||
| <br/><a href="${SUPPORTURL}" target="_blank", rel="noopener noreferrer"> |
| }); | ||
| + // between 1-5 seconds, flip them back, but keep the over. see #22 |
pdehaan
Dec 8, 2017
Contributor
Timing is always very hard. For example, unless the "Privacy" text appears "above the fold", it may be unlikely that the user will even see the effect. 2-6 seconds may not be enough time to read the content and scroll down to observe the effect if it's in a "Privacy Policy" footer link.
| @@ -77,10 +77,20 @@ class PersistentPageModificationEffect { | ||
| display: inline-block; | ||
| } | ||
| + .donotdelete-revert { | ||
| + transform: ScaleY(1); |
pdehaan
Dec 8, 2017
Contributor
nit: scaleY(1) (lowercase)
Not sure if there'd be a way to extract this CSS into an external file so we could validate it using stylelint or something, but now I'm getting super nit-pickety...
Currently I just copy the contents into an external file and lint that manually, but it's not foolproof, and I'm a pretty big fool.
gregglind
added some commits
Dec 8, 2017
| + | ||
| + /* after revert, revert the tooltip */ | ||
| + .donotdelete-revert .donotdelete-tooltip { | ||
| + transform: scaleY(1) translateY(-50%); |
biancadanforth
Dec 8, 2017
Collaborator
Please update these styles as we discussed to avoid the tooltip glitch:
.donotdelete-revert {
transform: scaleY(1);
transition: transform 1s ease-in;
}
/* after revert, revert the tooltip */
.donotdelete-revert .donotdelete-tooltip {
transform: scaleY(1) translateY(-50%);
transition: transform 1s ease-in;
}| + .donotdelete-revert .donotdelete-tooltip { | ||
| + transform: scaleY(1) translateY(-50%); | ||
| + } | ||
| + | ||
| .donotdelete-tooltip { |
biancadanforth
Dec 8, 2017
Collaborator
Can you also add font-style: normal !important; under "Neutralizing styles" for this selector? Just saw the text italicized otherwise on New York Times' website.
| if (this.protocolIsApplicable(tab.url) && tab.status === "complete") { | ||
| - browser.tabs.insertCSS(id, this.CSS); | ||
| + await browser.tabs.insertCSS(id, this.CSS); |
biancadanforth
Dec 8, 2017
Collaborator
Just wanted to note here that we would really need to programmatically load the content script for new tabs after the CSS is injected with tabs.executeScript to ensure the tooltip HTML is hidden before its injected into the DOM.
| -3. UI functionality: 'X' button | ||
| + `npm run build` makes an addon: |
gregglind
added some commits
Dec 8, 2017
|
For posterity, there is one known unresolved display bug for when parent elements to the match word (.donotdelete element) have Since it's hard to anticipate all possible inherited styles; we may want to consider a different approach in the future than appending the hover element as a child element to the match word One idea: attach a single hover element to |
gregglind commentedDec 8, 2017
KNONW ISSUE:
Possible answere: