Skip to content

Commit

Permalink
added goodreads and imdb new rating selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
ganigeorgiev committed Jul 6, 2024
1 parent cf7e81e commit 2274850
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017-2021 ganigeorgiev
Copyright (c) 2017-present ganigeorgiev

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
2 changes: 2 additions & 0 deletions css/goodreads.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ html:not(.show-ratings) .AverageRating,
html:not(.show-ratings) .AggregateRating,
html:not(.show-ratings) .RatingStatistics,
html:not(.show-ratings) .ReviewsSectionStatistics,
html:not(.show-ratings) .BookRatingStars,
html:not(.show-ratings) .BookStatistics__ratingStatistics,
html:not(.show-ratings) .BookStatistics__histogram,
html:not(.show-ratings) .BookListItemRating__column.BookListItemRating__column--secondary,
html:not(.show-ratings) .RatingStars,
html:not(.show-ratings) .SocialSignalsSection,
html:not(.show-ratings) .SocialSignalsSection + .Divider,
Expand Down
4 changes: 3 additions & 1 deletion css/imdb.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ html:not(.show-ratings) .rating-other-user-rating,
html:not(.show-ratings) .imdbRatingPlugin,
html:not(.show-ratings) .ipc-rating-star--imdb,
html:not(.show-ratings) .ipc-poster-card__rating-star-group,
html:not(.show-ratings) .ipc-rating-star,
html:not(.show-ratings) .ipc-reaction-summary,
html:not(.show-ratings) .metacritic-score-box,
html:not(.show-ratings) .metacritic-score-label,
html:not(.show-ratings) .ipc-voting__label__count,
html:not(.show-ratings) [class*="TitleBlock__RatingContainer"],
html:not(.show-ratings) [class*="RatingBar__RatingContainer"],
Expand Down
4 changes: 2 additions & 2 deletions js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ function toggleDocumentClass(value, className) {
className = className || 'show-ratings';

if (value) {
document.querySelector('html').classList.add(className);
document.documentElement?.classList?.add(className);
} else {
document.querySelector('html').classList.remove(className);
document.documentElement?.classList?.remove(className);
}
}
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "Hide ratings (IMDB,Goodreads,MyAnimeList,...)",
"description": "Hides the rating bars from IMDB, Goodreads, MyAnimeList and Letterboxd.",
"version": "2.1.0",
"version": "2.2.0",
"action": {
"default_icon": "images/icon64.png",
"default_popup": "options.html"
Expand Down
2 changes: 1 addition & 1 deletion options.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

<div id="status_box" class="alert absolute success hidden">Successfully saved options!</div>

<footer class="credits">v2.1.0 | <a href="https://github.com/ganigeorgiev/hide-ratings-extension" target="_blank">GitHub</a></footer>
<footer class="credits">v2.2.0 | <a href="https://github.com/ganigeorgiev/hide-ratings-extension" target="_blank">GitHub</a></footer>
</div>
<script src="js/options.js"></script>
</body>
Expand Down

0 comments on commit 2274850

Please sign in to comment.