This repository was archived by the owner on May 26, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inject the CSS using
browser.tabs.injectCSS();
# Changes: - Fix sites which prohibit 'unsafe-inline' in their style CSP - Ensure that websites can’t restyle the Min Vid buttons - Don’t leak the `moz-extension://` UUID.
- Loading branch information
Showing
4 changed files
with
97 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
.minvid__overlay__bottom_container { | ||
align-items: center; | ||
background-color: rgba(0,0,0,0.8); | ||
opacity: 0; | ||
border-radius: 0 0 4px 4px; | ||
height: 100%; | ||
justify-content: center; | ||
left: 4%; | ||
max-height: 80px; | ||
max-width: 36px; | ||
padding: 2px 2px 4px; | ||
position: absolute; | ||
bottom: 0; | ||
width: 100%; | ||
z-index: 1000; | ||
} | ||
|
||
.minvid__overlay__container { | ||
align-items: center; | ||
background-color: rgba(0,0,0,0.8); | ||
opacity: 0; | ||
border-radius: 0 0 4px 4px; | ||
height: 100%; | ||
justify-content: center; | ||
left: 4%; | ||
max-height: 80px; | ||
max-width: 36px; | ||
padding: 2px 2px 4px; | ||
position: absolute; | ||
top: 0; | ||
width: 100%; | ||
z-index: 1000; | ||
} | ||
|
||
.minvid__overlay__container:hover, | ||
.minvid__overlay__bottom_container:hover { | ||
background: rgba(0,0,0,0.9); | ||
} | ||
|
||
.minvid__overlay__icon { | ||
display: block; | ||
cursor: pointer; | ||
height: 40%; | ||
opacity: 0.7; | ||
width: 100%; | ||
} | ||
|
||
#minvid__overlay__icon__play { | ||
background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTYiIGhlaWdodD0iNzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iY29udGV4dC1maWxsICNGRkYiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PHBhdGggZD0iTTAgOC4wMDdDMCAzLjU4NSAzLjU4OCAwIDggMGg4MGM0LjQxOSAwIDggMy41ODIgOCA4LjAwN3Y1Ny45ODZDOTYgNzAuNDE1IDkyLjQxMiA3NCA4OCA3NEg4Yy00LjQxOSAwLTgtMy41ODItOC04LjAwN1Y4LjAwN3pNNyAyNmE1IDUgMCAwIDEgNS4wMDYtNWg3MS45ODhBNSA1IDAgMCAxIDg5IDI2djM2YTUgNSAwIDAgMS01LjAwNiA1SDEyLjAwNkE1IDUgMCAwIDEgNyA2MlYyNnoiLz48cGF0aCBkPSJNMTIgMzcuOTk3QTMuOTkzIDMuOTkzIDAgMCAxIDE1Ljk5OCAzNGgyNy4wMDRBNCA0IDAgMCAxIDQ3IDM3Ljk5N3YyMC4wMDZBMy45OTMgMy45OTMgMCAwIDEgNDMuMDAyIDYySDE1Ljk5OEE0IDQgMCAwIDEgMTIgNTguMDAzVjM3Ljk5N3ptMTEuNSA0LjM3YzAtLjMwOS4yMjItLjQ1LjQ5OS0uMzE2bDEyLjc5NCA2LjIwN2MuMjc1LjEzNC4yNzcuMzUgMCAuNDg0TDIzLjk5OSA1NC45NWMtLjI3Ni4xMzMtLjQ5OS0uMDA4LS40OTktLjMxNlY0Mi4zNjd6Ii8+PC9nPjwvc3ZnPg==") no-repeat; | ||
background-position: center bottom; | ||
background-size: 32px auto; | ||
} | ||
|
||
#minvid__overlay__icon__add { | ||
background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTguNCA1LjZWMEg1LjZ2NS42SDB2Mi44aDUuNlYxNGgyLjhWOC40SDE0VjUuNnoiIGZpbGw9ImNvbnRleHQtZmlsbCAjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=") no-repeat; | ||
background-position: center bottom; | ||
background-size: 25px auto; | ||
margin-top: 5px; | ||
} | ||
|
||
.minvid__overlay__wrapper:hover .minvid__overlay__container, | ||
.minvid__overlay__wrapper:hover .minvid__overlay__bottom_container { | ||
opacity: 1; | ||
/*background-color: rgba(0, 0, 0, .8);*/ | ||
/*animation-name: fade; | ||
animation-duration: 4s; | ||
animation-iteration-count: initial; | ||
animation-fill-mode: forwards;*/ | ||
} | ||
|
||
#minvid__overlay__icon__play:hover, | ||
#minvid__overlay__icon__add:hover { | ||
opacity: 1; | ||
} | ||
|
||
.minvid__overlay__container.fullscreen { | ||
display: none; | ||
} | ||
|
||
@keyframes fade { | ||
0% {opacity: 0} | ||
5%, 80% {opacity: 1} | ||
100% {opacity: 0} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters