Skip to content

Commit

Permalink
v1.9.0 - 2021-04-20
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornstar committed Apr 20, 2021
1 parent b890ae4 commit f2a3be3
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 26 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Tumblr Savior Changelog

## v1.9.0 - 2021-04-20
* Updated `CSS_CLASS_MAP` to match tumblr's new one (https://assets.tumblr.com/pop/cssmap-e28281a0.json)
* tumblr removed the numbered css variables so we update ours to match

## v1.8.0 - 2021-01-20
* Changed the wording from `notification` to `content warning` since tumblr doesn't use notifications on the dashboard anymore
* Fixed a bug where whitelisted posts would be hidden when content warnings are disabled
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tumblr-savior",
"version": "1.8.0",
"version": "1.9.0",
"description": "Would you like to control what shows up on your dashboard? Tumblr Savior is here to save you!",
"scripts": {
"test": "eslint src"
Expand Down
2 changes: 1 addition & 1 deletion src/data/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ const defaultSettings = {
'show_notice': true,
'show_tags': true,
'show_words': true,
'version': '1.8.0'
'version': '1.9.0'
}; // Initialize default values.
46 changes: 23 additions & 23 deletions src/data/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,28 @@ const defaultSettings = {
'show_notice': true,
'show_tags': true,
'show_words': true,
'version': '1.8.0'
'version': '1.9.0'
}; // Initialize default values.

const BASE_CONTAINER_ID = 'base-container';
const CSS_CLASS_MAP = {
attribution: '_2r26Q',
contentSource: 'hjr__',
controlIcon: '_33VXm',
controls: '_1kqDq',
filteredScreen: 'LihFc',
footerWrapper: '_3TeiW',
footer: '_2dGhQ',
listTimelineObject: '_1DxdS',
mrecContainer: '_3bMU2',
noteCount: 'o_B3M',
noteCountButton: '_3t3fM',
reblog: '_3zgGl',
reblogHeader: '_2zTTs',
recommendationReason: '_nUEo',
stickyContainer: '_3wjj2',
tags: 'pOoZl',
textBlock: '_2m1qj'
attribution: '_3QZzd', // [1]
contentSource: '_28g6n',
controlIcon: '_3Rgpb', // [1]
controls: '_8WDrj', // [1]
filteredScreen: '_7X-5c',
footerWrapper: 'IdU-A',
footer: 'Js4q5', // [5]
listTimelineObject: '_2erxf', // [1]
mrecContainer: '_1s9MS',
noteCount: '_1W1c2', // [2]
noteCountButton: '_2Qu8Z',
reblog: 'kg4ok',
reblogHeader: 'r_IvO',
recommendationReason: '_3GqQn', // [1]
stickyContainer: '_3sRV0',
tags: '_2BwP0', // [4]
textBlock: '_3MF9s'
};

/**
Expand Down Expand Up @@ -121,11 +121,11 @@ const hideControlsStyle = [`

const showButtonStyle = [`
.tumblr-savior-show {
border: 2px solid var(--gray-40);
color: var(--gray-65);
border-radius: 3px;
border: 1px solid rgba(var(--black),.65);
color: rgba(var(--black),.65);
border-radius: 2px;
font-weight: 700;
padding: 6px 10px;
padding: 5px 7px;
margin-left: 10px;
}
.tumblr-savior-show::after {
Expand All @@ -138,7 +138,7 @@ const showButtonStyle = [`

const noticeStyle = [`
ts-notice ${css('textBlock')} {
background-color: var(--gray-7);
background-color: rgba(var(--black),.07);
display: flex;
white-space: normal;
}
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Tumblr Savior",
"version": "1.8.0",
"version": "1.9.0",
"description": "Would you like to control what shows up on your dashboard? Tumblr Savior is here to save you!",
"background": {
"scripts": [ "data/defaults.js", "lib/main.js" ]
Expand Down

0 comments on commit f2a3be3

Please sign in to comment.