Code Monkey home page Code Monkey logo

tweaks-for-reddit's Introduction

A Safari App Extension that makes Reddit suck just a little bit less on Safari 13+.

CI Status

xcodebuild

Background

This project started in June 2019 as an attempt to port the entirety of the Reddit Enhancement Suite to the Safari App Extension framework. Since then, this project has diverted from that path and instead implements a select swath of features. Requests are welcome: simply open an issue. Pull requests are also welcome, as are code reviews.

Requirements

As of version 1.7.2, Tweaks for Reddit is only supported on macOS 11.x (Big Sur) and macOS 12.x (Monterey).

As of version 1.4, redditweaks is only supported on macOS 10.15 (Catalina) and 11 (Big Sur). This is due to the adoption of SwiftUI and Combine in version 1.4.

Versions 1.3 and below were written in UIKit with the help of SnapKit.

Installation

  1. Download the latest release from the releases page.
  2. Unzip the archive, and move redditweaks.app into /Applications.
  3. Launch redditweaks.app and follow the prompt to enable the extension in Safari.
  4. You may then close the app. It is not required to be open for the extension to work, but you cannot delete it.

Development

Historical Screenshots

https://i.imgur.com/wytyfjh.jpg
https://i.imgur.com/RLFPr6i.jpg
https://i.imgur.com/VNxAfgB.jpg
https://i.imgur.com/Mgz1lbk.png

tweaks-for-reddit's People

Contributors

bermudalocket avatar willbishop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

tweaks-for-reddit's Issues

Enabling and using "Endless scrolling" loses the ability to expand thumbnails

Hi, I am really enjoying Tweaks for Reddit, thanks for making it! I am running Safari 14.0.3 on an M1 MacBook Pro with Big Sur 11.2.3 and having an issue:

When I enable "endless scrolling" and get to page 2 or later, I can no longer click these to expand the post or media:
http://i.imgur.com/I2aTKK1.png

When I disable "endless scrolling" and refresh the page, scroll down and click to get to page 2, and try again, it works. It only stops working once I have re-enabled "endless scrolling."

Toolbar icon doesn't match

Minor UI issue but it might confuse newcomers, so I figured I'd mention it. The icon in the toolbar is facing the opposite direction.

CleanShot 2021-05-21 at 08 51 59

[1.4] Dark Mode

When the application is first opened, the font does not adapt correctly to dark mode, rendering all text invisible against the window (10.15.6)

Screen Shot 2020-07-20 at 12 00 51 PM

Custom subreddit bar enhancements

The custom subreddit bar delivers as intended but set-up/management could be improved. Two improvements that I think would be impactful are:

  1. Ability to re-order subreddit list after being added
  2. Ability to add custom display names for subreddits on the subreddit bar (i.e. allowing the user to display 'WSB' on the subreddit bar instead of 'WallStreetBets')

Custom subreddit bar gets wiped after every update

It has happened in the last 3 updates. I was hoping that once the app hit the App Store that the issue might've been rectified but that does not seem to be the case. The latest App Store update also wiped the custom subreddit bar.

Is the file that stores the custom subreddit bar being reset with every update? Is there perhaps a better place to store user settings?

Custom Subreddit Bar freezing while typing

Screen Shot 2021-02-10 at 10 45 59 PM

Hi, I can't seem to add anything to the Custom Subreddit Bar. Immediately after starting to type the 'add' button turns into the spinning circle icon and stays suspended. Ultimately nothing is added and the 'add' button never returns.

macOS 13/Safari 16.1 Support

I've updated my Mac to macOS 13 Ventura and the extension seems to have broken. Here's what I'm observing:

  • Extension is still recognized in Safari under Preferences > Extensions
  • Extension is missing from Customize Toolbar
  • Tweaks for Reddit.app still opens fine and previous set-up data appears to be preserved
  • The extension appears to have no effect on reddit.com. For example, I can still see the 'Get New Reddit' button and Chat icon which I've previously disabled

Let me know if you'd like any screenshots or further details.

In a multireddit view, the subreddit list is not clickable if there is a viewed (dimmed) thread on the list

If I'm browsing a multireddit view and there is a dimmed previously visited thread on the list, it covers the subreddit links on the right as well.

Screen Shot 2021-06-23 at 17 37 00

On the attached image, on the subreddits list on the right, I can't click on any subreddit from r/AppleMusic to r/Games, but the ones before AppleMusic and after Games are clickable normally. I think the panel from the viewed thread on the left is covering them.

I'm using the Mac App Store version (1.12.3). Safari and macOS are on the latest versions (14.1.1 and 11.4) as well.

Feature Request: Keyboard navigation for old reddit

One of my favorite features from RES is keyboard navigation (with highlighted "active" post).

  • J: Previous Post
  • K: Next Post
  • H: Hide Post
  • enter: follow link
  • S: Save Post

RES's keyboard navigation also worked with ad-blockers (so I assume the navigation acted on "currently visible" links/posts).

Didn't see this on your roadmap and its probably a lot of hassle, but wanted to throw a vote in for it :)

Also: this extension has made Reddit a lot more bearable after switching to Safari from Firefox. Thank you :)

Adding subreddits to custom subreddit bar doesn't work (anymore)

I started using your tweak with version 1.6 . This is the version I also added 1 sub to the custom subreddit bar.
After upgrading to 1.6.1 I cannot add more subs.
Heres a screenshot of what it looks like:
Bildschirmfoto 2020-10-29 um 11 39 52

Other than that I love your extension, keep up the great work dude!

How to install?

The readme contains no info at all about how to install this. Almost looks like it has to be compiled before installation.

How do I install it?

Unable to rearrange favorite subbreddits on bar

  • I added a bunch of subreddits in alphabetical order, something happened and on refresh the bar is out of the order I put it in.
  • Tried to delete the favorites but, the window closes w/o removing the favorite
  • Attempted to reinstall tweaks for reddit, but I guess this pulls into cloud kit.
  • Any chance for an ability to sort the favorites in alphabetical order?

Apologies I think this is 3 separate issues.

Minimum macOS?

Extensions App for Safari 13 can run on 10.13 (High Sierra), 10.14 (Mojave) and 10.15 (Catalina).

Personally, I'm sticking with Mojave for a while, so I'd like to see a release that supported not just Catalina.

Thanks for your consideration!

No more Catalina compatibility?

Releases past 1.6.1 cannot be installed on my machine running 10.15.7. Was this intended behavior in the rewrite?

I'm stuck with Catalina for a while as Big Sur is not an approved OS for my workplace. Thanks for all your hard work on this extension.

Live Comment Previews not working after updating to 1.12.

It seems Live Comment Previews have stopped working after updating to 1.12. The "Live Comment Previews" tab within the the settings reports "Thank you for your support!", however, the debug tab states "Live Comment Previews: No".

I've tried toggling the function on/off, using the "restore purchases" option, and rebooting. None of which seem to have corrected the issue.

Versions:

macOS Big Sur (11.3.1)
Safari: 14.1 (16611.1.21.161.6)
Tweaks for Reddit: 1.12

Screen Shot 2021-06-01 at 9 09 18 AM
Screen Shot 2021-06-01 at 8 58 46 AM
Screen Shot 2021-06-01 at 8 55 47 AM
Screen Shot 2021-06-01 at 8 55 43 AM

Feature Request: Account Switching

One of the things that I miss most about RES (honestly, probably the only thing that this point) that TFR hasn't filled yet is the ability the switch between multiple accounts. I noticed this wasn't on the roadmap, so I was curious if this had been considered previously and discarded? If not, could this be consider for future inclusion?

Paid for In-App Purchase, but cannot enable "Live preview comments in markdown"

Hi, I am running Safari 14.0.3 on an M1 MacBook Pro with Big Sur 11.2.3.

I previously had an older version of the github version of redditweaks installed, but today I bought Tweaks for Reddit from the Mac App Store in order to update it. I promptly paid the $0.99 for the In-App Purchase. But when I try to click the checkbox it just launches the app. I click on "Restore Purchases" and it says "Thank you for your support" but it still won't leave me check that box or enable "Live preview comments in markdown." What am I missing?

Expandable Twitter posts?

Would love to see an enhancement for expandable twitter posts with videos/images.. Currently I have to click the link which takes me off of reddit to the actual tweet. I would expect to have a collapsable button which loads the tweet itself:

RES in Chrome browser
Screen Shot 2021-11-05 at 8 11 16 AM

In my opinion this is the only thing keeping the app from matching RES. Outstanding work so far.

Scaling issue with popover menu with large custom subreddit list

I'm having issues using the popover menu once the custom subreddit list becomes large. I can't scroll up/down to see the other elements in the popover menu.

Not sure if there's a way to add scrolling within the popover menu. Otherwise, it may be better to explore different menu structures. For example, I notice Dark Reader's settings take me different page that is still displayed in the popover menu.

Tweaks for Reddit Popover issue
Screen Shot 2021-05-09 at 1 56 49 PM

Dark Reader Settings Example
Screen Shot 2021-05-09 at 2 04 51 PM

Screen Shot 2021-05-09 at 2 04 58 PM

Auto dark mode on old reddit

Suggesting a possible future feature: a dark mode for the old reddit design that changes according to the system settings.

Issue with favorite subreddits

Hi all,

First just wanted to say thank you for making this extension. Very helpful in the transition to Safari.

I originally submitted a support request via the Tweaks for Reddit toolbar item in Safari, but I received this error in my email:

There was a temporary problem delivering your message to [email protected]. Gmail will retry for 45 more hours. You'll be notified if the delivery fails permanently.

Anyway, the issue I'm having is with favorite subreddits and maybe with the extension in general. The main issue I'm seeing is I cannot save any favorite subreddits. As soon as I enter them and hit enter, it closes the toolbar and they disappear.

Another issue I'm noticing, and it may be related to/causing the original issue is the loading icon next to my Reddit stats is ... always loading. Here's a screenshot of what I'm referring to:

image

This just spins forever.

I've also noticed these DEBUG messages in developer tools:

image

Unsure if they're normal, or related to the issue(s) I'm having.

[ROADMAP] Future Features

  • OAuth Integration

    • Background task to check for new messages, modmail, replies, etc., and send a notification
    • Display Snoovatar on old reddit, in popover
    • Display post and comment karma in popover
    • Custom notifications for changes in karma
  • Machine Learning

    • AI-powered spam detection
    • AI-powered emotional manipulation detection (see here)

"Automatically Expand Images" works where?

I have this setting enabled but not seeing it actually do anything? Which images is it supposed to expand?

One feature I loved about Reddit Enhancement Suite was that it put little icons next to image URL's like these below, which we could expand on demand, in place.

CleanShot 2021-05-21 at 08 50 10

Could Tweaks for Reddit include that kind of functionality too? Because I'm not sure I'd want ALL images auto-expanded. But I do want to manually click to view some of them in a thread, without them opening up a new page when doing so.

Show Localised iAP Prices

Currently you only show $0.99 as the price, but in many countries that price may be $1.49, or £0.99.

[1.4.1] Extension Crashes, Does Not Open in Safari

Updated to 1.4.1 today; when opening the extension, the "Open In Safari" button does not open Safari or open the extensions preference pane if Safari is already open. In addition, clicking the icon in the toolbar seems to do nothing, but actually crashes the app according to the system console (Crash report attached below). Have tried a clean install by deleting the old version and all system files with AppCleaner but the issue persists (macOS 10.15.6, MacBook Pro 2015)

Redditweaks Crash Report.txt

App settings not working/displaying

When I try to enable "Live preview comments in markdown" and it opens the app settings window (with 1 - Welcome, 2 - Connect to Safari, etc.) nothing appears in the right-hand window when I select options from the side bar. The only thing displayed is "Welcome to Tweaks for Reddit"

No more NSFW hide?

Did this get removed? I am using 1.9.2 and do not see this option anymore.

Media (with sound) autoplays briefly when I refresh the home page, with "Automatically expand images" on

The new version has a weird issue. With "Automatically expand images" enabled, nearly every time I refresh reddit.com's home page, I hear a short snippet of sound and see the speaker icon in the address bar. And it's not always the same sound.

What I can confirm now is that the issue goes away if I disable this extension, as well as if I leave it enabled, and only disable that one "automatically expand images" feature. Then when I refresh the page, that quick sound doesn't play. Happy to help troubleshoot, just let me know what else to try.

"Endless Scrolling" no longer working

It was working fine, and now it's not. And I can't click "Next" manually either, so I am stuck on page 1.

Once I disable "Endless Scrolling" in Tweaks for Reddit, and refresh the page, the manual controls re-appear.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.