Skip to content

Commit

Permalink
Version 5.1.1 (#70)
Browse files Browse the repository at this point in the history
* add `-webkit-` prefixed mask properties for placeholder CSS (fixes #67)

* send current value with `toggle-placeholders` message (fixes #66)

* bump version to 5.1.1
  • Loading branch information
rthaut authored Feb 7, 2019
1 parent 89983b3 commit b609c39
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[<img align="right" src="https://travis-ci.com/rthaut/deviantART-Filter.svg?branch=master" alt="Build Status"/>](https://travis-ci.com/rthaut/deviantART-Filter)
[<img align="right" src="https://badges.greenkeeper.io/rthaut/deviantART-Filter.svg" alt="Greenkeeper badge"/>](https://greenkeeper.io/)

# DeviantArt Filter 5.1.0
# DeviantArt Filter 5.1.1

> Allows configurable filtering/removal of deviations by user, tag, and/or category on DeviantArt
Expand Down Expand Up @@ -178,4 +178,3 @@ This setting, as the description states, is primarily for troubleshooting and de
### Browse Page with Placeholders Disabled

![Screenshot of DeviantArt with placeholders disabled for filtered deviations](/screenshots/No-Placeholders.png?raw=true)

1 change: 0 additions & 1 deletion docs/chrome/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ DeviantArt Filter allows you to export and import filters from a JSON file. This
2. An `x` icon will appear in the top-left corner of the thumbnail.
3. Click on the `x` to filter that user.


[chrome-url]: https://chrome.google.com/webstore/detail/deviantart-filter/odlmamilbohnpnoomjclomghphbajikp
[chrome-image-download]: https://img.shields.io/chrome-web-store/d/odlmamilbohnpnoomjclomghphbajikp.svg
[chrome-image-version]: https://img.shields.io/chrome-web-store/v/odlmamilbohnpnoomjclomghphbajikp.svg
1 change: 0 additions & 1 deletion docs/firefox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ DeviantArt Filter allows you to export and import filters from a JSON file. This
2. An `x` icon will appear in the top-left corner of the thumbnail.
3. Click on the `x` to filter that user.


[firefox-url]: https://addons.mozilla.org/en-US/firefox/addon/deviantart-filter/
[firefox-image-download]: https://img.shields.io/amo/d/deviantart-filter.svg
[firefox-image-version]: https://img.shields.io/amo/v/deviantart-filter.svg
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "deviantart-filter",
"title": "DeviantArt Filter",
"version": "5.1.0",
"version": "5.1.1",
"description": "Allows configurable filtering/removal of deviations by user, tag, and/or category on DeviantArt",
"author": "Ryan Thaut <[email protected]> (http://ryanthaut.com)",
"homepage": "https://github.com/rthaut/deviantART-Filter",
Expand Down
4 changes: 4 additions & 0 deletions src/helpers/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,8 @@ export const PLACEHOLDER_LOGO_CSS = [
'mask-position: center center;',
'mask-repeat: no-repeat;',
'mask-size: 80% 50%;',
`-webkit-mask-image: url(${browser.runtime.getURL('images/placeholder.svg')});`,
'-webkit-mask-position: center center;',
'-webkit-mask-repeat: no-repeat;',
'-webkit-mask-size: 80% 50%;',
].join('\n');
7 changes: 6 additions & 1 deletion src/scripts/background/browser-storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ const BrowserStorage = (() => {
});

case 'placeholders':
return BrowserTabs.sendMessageToAllTabs({ 'action': 'toggle-placeholders' });
return BrowserTabs.sendMessageToAllTabs({
'action': 'toggle-placeholders',
'data': {
'placeholders': changes[item].newValue
}
});

case 'placeholderBGColor':
case 'placeholderLogoColor':
Expand Down

0 comments on commit b609c39

Please sign in to comment.