Skip to content

Commit

Permalink
v1.10.0 / 2021-08-18
Browse files Browse the repository at this point in the history
 * 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
 * [`LICENSE`] Update most recent year to `2021`
  • Loading branch information
bjornstar committed Aug 18, 2021
1 parent f2a3be3 commit 864b229
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 55 deletions.
65 changes: 36 additions & 29 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,44 +1,51 @@
# Tumblr Savior Changelog

## v1.9.0 - 2021-04-20
## v1.10.0 / 2021-08-18
* 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 slashes to separate the version number from the year
* [`LICENSE`] Update most recent year to `2021`

## 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
## 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
* Restored the option to hide recommended posts (Fixes #66) (Fixes #64)
* Found another source attribution block to hide

## v1.7.0 - 2020-12-28
## v1.7.0 / 2020-12-28
* Make "Ignore filtered content" an option (Fixes #76)
* Add an option to hide filtered content

## v1.6.3 - 2020-12-27
## v1.6.3 / 2020-12-27
* Properly apply default settings when there weren't any saved settings
* Ignore `filteredScreen` content in the body, this avoids filtering out Tumblr's filter messages which do not have footers

## v1.6.2 - 2020-10-10
## v1.6.2 / 2020-10-10
* [`manifest.json`] Forgot to update the version

## v1.6.1 - 2020-10-10
## v1.6.1 / 2020-10-10
* Move icon and screenshot from root to `media` directory
* [`.npmignore`] Ignore `.github` and `media` directories for npm package

## v1.6.0 - 2020-10-10
## v1.6.0 / 2020-10-10
* Filter out the `footerWrapper` instead of the `footer` for the post body
* Use the `tags` class instead of the `footer` for the post tags

## v1.5.1 - 2020-10-08
## v1.5.1 / 2020-10-08
* [`.github/workflows`] Don't use $default-branch, just use your branch name
* [`PRIVACY.md`] Move to root of the project

## v1.5.0 - 2020-10-08
## v1.5.0 / 2020-10-08
* Adapted to a tumblr update that put the footer in a container (Fixes #73)
* Use a `CSS_CLASS_MAP` so that we can refer to unobfuscated classNames
* [`PRIVACY.md`] Added a privacy policy because the Microsoft Edge Add-on site requests one

## v1.4.0 - 2020-10-01
## v1.4.0 / 2020-10-01
* Use `aria-label` for header contents (Thanks @mtae!)
* Add github workflow for CI
* Remove deprecated safari extension build scripts
Expand All @@ -47,12 +54,12 @@
* [`package.json`] Rename `lint` script to `test`
* [`LICENSE`] Make the copyright year a range of years

## v1.3.0 - 2020-07-11
## v1.3.0 / 2020-07-11
* Looks like the previous method of hiding sponsored posts didn't last, here's a new one
* Improve behavior when overlapping with tumblr's own content filter
* Use more es6 code

## v1.2.0 - 2020-07-05
## v1.2.0 / 2020-07-05
* Try a new way to hide sponsored posts (fixes #68)
* Do not extract text from the `ts-notice`
* All logic regarding the context menu is now in `main.js`, this fixes a bug where enabling the context menu would cause it to stop working
Expand All @@ -65,18 +72,18 @@
* Add a `package.json`
* Start using eslint

## v1.1.0 - 2020-04-10
## v1.1.0 / 2020-04-10
* Actually fix the width for the warning icon
* Add a trim to context menu selection because both Firefox and Opera like to include the trailing space
* Remove some obsolete code
* Fix an issue where the search page would not be filtered initially
* Update the README and the about tab to include a solicitation for sponsorship

## v1.0.1 - 2020-04-09
## v1.0.1 / 2020-04-09
* Use width instead of min-width for warning icon (flexbug in firefox)
* Remove a console.log

## v1.0.0 - 2020-04-05
## v1.0.0 / 2020-04-05
* Updated to work with the latest version of tumblr
* New default blacklist entries: coronavirus and trump
* New description in the manifest
Expand All @@ -87,67 +94,67 @@
* Removed showing whitelist matches for now
* Removed showing notices

## v0.5.7 - 2018-05-22
## v0.5.7 / 2018-05-22
* Remove vendor prefixed rules for wireUpNodes (fixes #57)
* Make `disable on inbox` work on blog specific inboxes (fixes #56)
* When resetting a post, just remove the display style instead of setting it to `list-item`

## v0.5.6 - 2018-03-30
## v0.5.6 / 2018-03-30
* Use old school iterator for old school browsers (fixes #55)

## v0.5.5 - 2018-03-29
## v0.5.5 / 2018-03-29
* Directly extract the text ourselves instead of stripping out html tags (fixes #54)
* Add a CSS rule for li elements to remove list-style as it was missing on search result pages

## v0.5.4 - 2017-07-28
## v0.5.4 / 2017-07-28
* Block a new type of ad: `dfp-ad-container` (fixes #50)
* Hide notifications when recommended or sponsored posts are hidden (fixes #41)
* Fix header markdown in the changelog
* Fix header markdown in the readme
* Got a new cert for Safari, the previous would expire next month
* Updated build script

## v0.5.3 - 2017-03-07
## v0.5.3 / 2017-03-07
* Shorten description in info.plist
* Improve localStorage handling in options (No more alert on empty settings in Safari)

## v0.5.2 - 2017-03-06
## v0.5.2 / 2017-03-06
* Use xar-mackyle on os x
* Include icon & screenshot for safari extension gallery
* Remove references to deprecated chrome.tabs.sendRequest
* Copy description into info.plist

## v0.5.1 - 2017-03-02
## v0.5.1 / 2017-03-02
* Avoid tumblr opening a blog in a new tab when clicking on a blacklist notification (Thanks @EmandM!)
* Remove several unused variables in the options page
* Simplify browser and feature detection logic
* Hide yahoo ads by default
* Remove link & italics from blacklist notification

## v0.5.0 - 2016-08-29
## v0.5.0 / 2016-08-29
* Firefox version is now a WebExtension, removed old code.
* Cleaned up multiple spaces to make it more natural to block bits that could have multiple spaces (soandso reblogged whositwhatsit)

## v0.4.28 - 2016-07-06
## v0.4.28 / 2016-07-06
* Include the new sidebar add when blocking Yahoo! ads (fixes #42)
* Add a link to https://paypal.me/bjornstar for people to show their appreciation (fixes #43)

## v0.4.27 - 2016-04-04
## v0.4.27 / 2016-04-04
* If the filter is triggered but the content is not loaded, run it again
* Remove `applications` entry from manifest

## v0.4.26 - 2016-03-13
## v0.4.26 / 2016-03-13
* Add `applications` entry to manifest to work around [a bug in AMO validator](https://github.com/mozilla/amo-validator/issues/405)

## v0.4.25 - 2016-03-13
## v0.4.25 / 2016-03-13
* Block a new type of ad: `standalone-ad-container` (fixes #38)
* Blacklist notices now get inserted at the same level as the post_container (fixes #7)
* Start Tumblr Savior earlier, allows style based hiding to run before all content is loaded

## v0.4.24 - 2016-01-21
## v0.4.24 / 2016-01-21
* Added an option in the Tumblr Behavior section to remove the t.umblr.com redirect (fixes #36)

## v0.4.23 - 2015-12-10
## v0.4.23 / 2015-12-10
* Fixed an issue where you were unable to block HTML Encoded entities: &, <, and > (fixes #31)
* Block a new type of ad: `video-ad-container` (fixes #34)

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2014-2020 Bjorn Stromberg <bjorn@bjornstar.com>
Copyright (c) 2014-2021 Bjorn Stromberg <bjorn@bjornstar.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
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.9.0",
"version": "1.10.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.10.0"
"eslint": "^7.32.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.9.0'
'version': '1.10.0'
}; // Initialize default values.
42 changes: 21 additions & 21 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.9.0'
'version': '1.10.0'
}; // Initialize default values.

const BASE_CONTAINER_ID = 'base-container';
const CSS_CLASS_MAP = {
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'
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]
};

/**
Expand Down Expand Up @@ -255,8 +255,8 @@ function addGlobalStyle(styleId, newRules) {
cStyle.sheet.deleteRule(0);
}

if (cStyle.innerText) {
cStyle.innerText = '';
if (cStyle.textContent) {
cStyle.textContent = '';
}

newRules.forEach(newRule => {
Expand Down Expand Up @@ -523,7 +523,7 @@ function checkPost(post) {
return out + innerHTML;
}, '');

const isRecommendedPost = postTags && postTags.querySelector(css('recommendationReason'));
const isRecommendedPost = post.querySelector(css('recommendationReasonTopTeaserWrapper'));

if (postTags && !settings.ignore_tags) {
postText += extractText(postTags);
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.9.0",
"version": "1.10.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 864b229

Please sign in to comment.