Skip to content

Commit

Permalink
chore: remove all mentions and files related to RPAN streams
Browse files Browse the repository at this point in the history
  • Loading branch information
datguyducky committed May 10, 2023
1 parent 22cc1c6 commit 86f4b68
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 73 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ I'm sure I'm not the only one annoyed by the awards on Reddit. So I created this
- works on redesigned and old version of Reddit
- disable awards on posts and comments
- disable animated awards on comments
- disable awards on RPAN
- settings pop-up to customize which awards to show (for example: _show awards on RPAN, but not on comments and posts_)
- settings pop-up to customize which awards to show (for example: _show "Get awards" buttons but hide awards on posts and comments)
- hide "Give Awards" on comments and posts <sup>**NEW**</sup>
- hide "Coins X" on your profile dropdown <sup>**NEW**</sup>
- option to show all awards but make them non-interactive <sup>**NEW**</sup>
Expand Down
8 changes: 0 additions & 8 deletions css/giveAwardsBtn.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
/*
hide "give awards" button on RPAN
RPAN WORKS ONLY ON NEW REDDIT
*/
.BtTZ62LYQAh6Ezp2xw_4R._1pWwFWQOxI4UHucSbgy7Yr {
display: none !important;
}

/*
hide "give award" button on posts
NEW REDDIT
Expand Down
41 changes: 0 additions & 41 deletions css/rpanAwards.css

This file was deleted.

4 changes: 0 additions & 4 deletions handle-settings.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const saveSettings = async () => {
// get all select elements
const GIVE_AWARD_BTNS = document.getElementById("toggle-op1").checked;
const RPAN_AWARDS = document.getElementById("toggle-op2").checked;
const COMMENTS_AND_POSTS_AWARDS =
document.getElementById("toggle-op3").checked;
const GET_COINS_BTN = document.getElementById("toggle-op4").checked;
Expand All @@ -16,7 +15,6 @@ const saveSettings = async () => {
await chrome.storage.local.set(
{
giveAwardsBtn: GIVE_AWARD_BTNS,
rpanAwards: RPAN_AWARDS,
commentsAndPostsAwards: COMMENTS_AND_POSTS_AWARDS,
getCoinsBtn: GET_COINS_BTN,
notInteractableAwards: NOT_INTERACTABLE_AWARDS,
Expand Down Expand Up @@ -46,15 +44,13 @@ const loadSettings = async () => {
await chrome.storage.local.get(
{
giveAwardsBtn: false,
rpanAwards: true,
commentsAndPostsAwards: true,
getCoinsBtn: false,
notInteractableAwards: false,
profileAwards: false,
},
(settings) => {
document.getElementById("toggle-op1").checked = settings.giveAwardsBtn;
document.getElementById("toggle-op2").checked = settings.rpanAwards;
document.getElementById("toggle-op3").checked =
settings.commentsAndPostsAwards;
document.getElementById("toggle-op4").checked = settings.getCoinsBtn;
Expand Down
3 changes: 1 addition & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "2.2.1",

"name": "No awards for Reddit",
"description": "Hide awards all over the redesigned and old Reddit (on posts, comments, RPAN streams and more)",
"description": "Hide awards all over the redesigned and old Reddit (on posts, comments and more)",
"author": "datguysheepy",

"icons": {
Expand Down Expand Up @@ -34,7 +34,6 @@

"web_accessible_resources": [
"css/commentsAndPostsAwards.css",
"css/rpanAwards.css",
"css/getCoinsBtn.css",
"css/giveAwardsBtn.css",
"css/profileAwards.css"
Expand Down
15 changes: 0 additions & 15 deletions no-awards-menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -200,21 +200,6 @@ <h1 class="ext-menu-header">Select which awards to hide:</h1>
</div>
</div>

<div class="op-wrap">
<label for="toggle-op2" class="op-label">
On RPAN streams:
</label>
<div class="toggle-wrap">
<input
type="checkbox"
name="toggle"
id="toggle-op2"
class="toggle-checkbox"
/>
<label for="toggle-op2" class="toggle-label"></label>
</div>
</div>

<div class="op-wrap">
<label for="toggle-op3" class="op-label">
On comments and posts:
Expand Down
1 change: 0 additions & 1 deletion no-awards.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const loadStyling = async () => {
await chrome.storage.local.get(
{
giveAwardsBtn: false,
rpanAwards: true,
commentsAndPostsAwards: true,
getCoinsBtn: false,
notInteractableAwards: false,
Expand Down

0 comments on commit 86f4b68

Please sign in to comment.