Skip to content

Commit

Permalink
v1.12.0 / 2021-11-10
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornstar committed Nov 10, 2021
1 parent ea4787c commit af7f1b7
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 37 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ src.safariextension
*.key
*.csr
node_modules
package-lock.json
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
# Tumblr Savior Changelog

## v1.12.0 / 2021-11-10
* Update `CSS_CLASS_MAP` -- https://assets.tumblr.com/pop/cssmap-84fedc5a.json
* [`.gitignore`] Add `package-lock.json`
* [`options.html`] Remove periods from the end of labels
* [`options.html`] Drop a the
* [`package.json`] Update `eslint` from `7.32.0` to `8.2.0`

## v1.11.0 / 2021-08-20
* Include text extracted from post bodies so they can be filtered even if they've been heavily styled

## v1.10.0 / 2021-08-18
* Update CSS_CLASS_MAP -- https://assets.tumblr.com/pop/cssmap-6fca4540.json (Fixes #78)
* Update `CSS_CLASS_MAP` -- https://assets.tumblr.com/pop/cssmap-6fca4540.json (Fixes #78)
* Use `textContent` instead of `innerText` for better performance
* [`package.json`] Update devDependency `eslint` from `v7.10.0` to `v7.32.0`
* [`CHANGELOG.md`] Use a slash to separate the version number from the year
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tumblr-savior",
"version": "1.11.0",
"version": "1.12.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 All @@ -21,6 +21,6 @@
},
"homepage": "https://github.com/bjornstar/Tumblr-Savior#readme",
"devDependencies": {
"eslint": "^7.32.0"
"eslint": "^8.2.0"
}
}
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.11.0'
'version': '1.12.0'
}; // Initialize default values.
28 changes: 14 additions & 14 deletions src/data/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@ <h2>White List</h2>
<div id="settingsDiv">
<h2>Tumblr Savior Behavior</h2>
<div id="show_notice_div">
<input type="checkbox" id="show_notice_cb" name="show_notice_cb" /> <label for="show_notice_cb">Show a content warning when something matches your blacklist.</label>
<input type="checkbox" id="show_notice_cb" name="show_notice_cb" /> <label for="show_notice_cb">Show a content warning when something matches your blacklist</label>
</div>
<div id="show_words_div">
<input type="checkbox" id="show_words_cb" name="show_words_cb" /> <label for="show_words_cb">Show which words have been hidden.</label>
<input type="checkbox" id="show_words_cb" name="show_words_cb" /> <label for="show_words_cb">Show which words have been hidden</label>
</div>
<div id="match_words_div">
<input type="checkbox" id="match_words_cb" name="match_words_cb" /> <label for="match_words_cb">Match whole words only. Use * as a wildcard (ie. ip* would match ipad and iphone, but not flip or mudkips).</label>
<input type="checkbox" id="match_words_cb" name="match_words_cb" /> <label for="match_words_cb">Match whole words only. Use * as a wildcard (ie. ip* would match ipad and iphone, but not flip or mudkips)</label>
</div>
<div id="context_menu_div">
<input type="checkbox" id="context_menu_cb" name="context_menu_cb" /> <label for="context_menu_cb">Add a menu item when you right click to quickly add words to your black list.</label>
<input type="checkbox" id="context_menu_cb" name="context_menu_cb" /> <label for="context_menu_cb">Add a menu item when you right click to quickly add words to your black list</label>
</div>
<div id="show_tags_div">
<input type="checkbox" id="show_tags_cb" name="show_tags_cb" /> <label for="show_tags_cb">Show tags from hidden posts.</label>
<input type="checkbox" id="show_tags_cb" name="show_tags_cb" /> <label for="show_tags_cb">Show tags from hidden posts</label>
</div>
<div id="ignore_div">
<input type="checkbox" id="ignore_header_cb" name="ignore_header_cb" />
Expand All @@ -60,31 +60,31 @@ <h2>Tumblr Savior Behavior</h2>
<br />
<h2>Tumblr Behavior</h2>
<div id="hide_source_div">
<input type="checkbox" id="hide_source_cb" name="hide_source_cb" /> <label for="hide_source_cb">Hide the source attribution.</label>
<input type="checkbox" id="hide_source_cb" name="hide_source_cb" /> <label for="hide_source_cb">Hide source attribution</label>
</div>
<div id="hide_reblog_header_div">
<input type="checkbox" id="hide_reblog_header_cb" name="hide_reblog_header_cb" /> <label for="hide_reblog_header_cb">Hide the reblog header.</label>
<input type="checkbox" id="hide_reblog_header_cb" name="hide_reblog_header_cb" /> <label for="hide_reblog_header_cb">Hide the reblog header</label>
</div>
<div id="hide_filtered_content_div">
<input type="checkbox" id="hide_filtered_content_cb" name="hide_filtered_content_cb" /> <label for="hide_filtered_content_cb">Hide filtered content.</label>
<input type="checkbox" id="hide_filtered_content_cb" name="hide_filtered_content_cb" /> <label for="hide_filtered_content_cb">Hide filtered content</label>
</div>
<div id="hide_radar_div">
<input type="checkbox" id="hide_radar_cb" name="hide_radar_cb" /> <label for="hide_radar_cb">Hide the radar in the sidebar.</label>
<input type="checkbox" id="hide_radar_cb" name="hide_radar_cb" /> <label for="hide_radar_cb">Hide the radar in the sidebar</label>
</div>
<div id="hide_recommended_blogs_div">
<input type="checkbox" id="hide_recommended_blogs_cb" name="hide_recommended_blogs_cb" /> <label for="hide_recommended_blogs_cb">Hide recommended blogs in the sidebar.</label>
<input type="checkbox" id="hide_recommended_blogs_cb" name="hide_recommended_blogs_cb" /> <label for="hide_recommended_blogs_cb">Hide recommended blogs in the sidebar</label>
</div>
<div id="hide_recommended_posts_div">
<input type="checkbox" id="hide_recommended_posts_cb" name="hide_recommended_posts_cb" /> <label for="hide_recommended_posts_cb">Hide recommended posts.</label>
<input type="checkbox" id="hide_recommended_posts_cb" name="hide_recommended_posts_cb" /> <label for="hide_recommended_posts_cb">Hide recommended posts</label>
</div>
<div id="hide_sponsored_div">
<input type="checkbox" id="hide_sponsored_cb" name="hide_sponsored_cb" /> <label for="hide_sponsored_cb">Hide sponsored posts.</label>
<input type="checkbox" id="hide_sponsored_cb" name="hide_sponsored_cb" /> <label for="hide_sponsored_cb">Hide sponsored posts</label>
</div>
<div id="hide_yahoo_ads_div">
<input type="checkbox" id="hide_sponsored_sidebar_cb" name="hide_sponsored_sidebar_cb" /> <label for="hide_sponsored_sidebar_cb">Hide the sponsored section in the sidebar.</label>
<input type="checkbox" id="hide_sponsored_sidebar_cb" name="hide_sponsored_sidebar_cb" /> <label for="hide_sponsored_sidebar_cb">Hide the sponsored section in the sidebar</label>
</div>
<div id="remove_redirects">
<input type="checkbox" id="remove_redirects_cb" name="remove_redirects_cb" /> <label for="remove_redirects_cb">Remove t.umblr.com redirects.</label>
<input type="checkbox" id="remove_redirects_cb" name="remove_redirects_cb" /> <label for="remove_redirects_cb">Remove t.umblr.com redirects</label>
</div>
</div>
<div id="saveloadDiv">
Expand Down
37 changes: 19 additions & 18 deletions src/data/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,29 @@ const defaultSettings = {
'show_notice': true,
'show_tags': true,
'show_words': true,
'version': '1.10.0'
'version': '1.12.0'
}; // Initialize default values.

const BASE_CONTAINER_ID = 'base-container';
// index is 0 based
const CSS_CLASS_MAP = {
attribution: 'N4RPg', // [3]
contentSource: 'jxQkY',
controlIcon: 'ZSAB8', // [1]
controls: 'aTcbY', // [3]
filteredScreen: 'dsPqS',
footerWrapper: 'icDHu',
footer: 'l3fvI', // [8]
listTimelineObject: 'IGdYk', // [1]
mrecContainer: 'JD7Cz',
noteCount: 'b_8BR', // [3]
noteCountButton: '_91ZJ',
reblog: 'pzcaM',
reblogHeader: 'pB3nk',
recommendationReasonTopTeaserWrapper: 'YCeHL',
stickyContainer: '_3ATg',
tags: 'YuqL0', // [3]
textBlock: 'shgTR' //[1]
attribution: 'eqBap', // [3]
contentSource: 'd_FyU',
controlIcon: 'gc3fY', // [1]
controls: 'MCavR', // [3]
filteredScreen: 'W0ros',
footerWrapper: 'qYXF9',
footer: 'Ha4CC', // [8]
listTimelineObject: 'So6RQ', // [0]
mrecContainer: 'Yc2Sp',
noteCount: 'HsBU3', // [3]
noteCountButton: 'rlv6m',
reblog: 'u2tXn', // [1]
reblogHeader: 'fAAi8',
recommendationReasonTopTeaserWrapper: 'n_1Sv',
stickyContainer: 'AD_w7',
tags: 'hAFp3', // [3]
textBlock: 'k31gt' //[0]
};

/**
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.11.0",
"version": "1.12.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 af7f1b7

Please sign in to comment.