Giter Site home page Giter Site logo

z0ccc / comet Goto Github PK

View Code? Open in Web Editor NEW
408.0 408.0 30.0 18.98 MB

Browser extension to replace Youtube comments with Reddit comments or view the Reddit comments of any webpage.

Home Page: https://chrome.google.com/webstore/detail/amlfbbehleledmbphnielafhieceggal

License: MIT License

JavaScript 95.79% CSS 2.85% HTML 1.36%
browser browser-addon browser-extension chrome chrome-extension extension firefox firefox-addon firefox-extension reddit reddit-comments webextension youtube youtube-comments

comet's People

Contributors

dependabot[bot] avatar devinparentice avatar z0ccc 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  avatar  avatar

comet's Issues

FR: Offer more specific URLs if current one has no posts

This FR is the inverse of this one, and could complement it.

If the current URL has no posts, I'd like the option to see more specific URLs within it.

For example, lets say I'm at "www.bob.com", but that URL has no posts.
However, the URLs "www.bob.com/about" and "www.bob.com/pricing" do have posts.

I can think two ways this could be done:

  1. The option to show all posts containing URLs starting with the current URL.
  2. The option to first show a list of more specific URLs, which when clicked shows the posts for it.

Note this FR and the one linked at the top could then be combined in certain situations. For example, lets say I go to a website and I get the French version automatically, with the URL ending in "/fr", which has no Reddit posts for it. I would then get the option to check the more general URL (without the "/fr"), as well as any other variation (other languages for example).

YT weird icons on clicking/ holding

As described in the title these strange icons appear uppon clicking and holding various items. (Videos, menus almost everxthing)
Its not really breaking, everything still works and its gone after releasing the mouse button.

Is there something planned with these icons? Cant figure out how to interact with them if its even possible.

Screen:
image

Feature request: Filter by comments or upvotes

It would be really handy to have a setting where if there are no posts with at least a specified number of comments or upvotes then the youtube comments will be shown.

This is especially useful to default to youtube when posts have no comments or just an automod comment.

Causing issues with SponsorBlock

Firefox 93.0

Reddit Wherever is causing SponsorBlock's timeline segments to be misaligned.

Without Reddit Wherever:
image

With Reddit Wherever:
image

Teddit support

It'd be nice to be able to optionally use teddit as a reddit backend to help preserve user privacy.

Text should be white when using dark mode

The reddit comments are unreadable when using YouTube in dark mode. The text should be white when in dark mode so the extension is usable when using YouTube's dark mode.

Dates 1 day/week/etc. ago are sometimes plural

Environment:

Extension version: 2.1.4
Chrome version: 93.0.4577.63

Error:

The date since a post/comment was created is sometimes spelled with a plural when the number is 1 (ex. "1 weeks" vs "1 week"). This happens when the time interval between the timestamp and now is at least 1 but not yet 2, for example 10 days being at least a week but not yet 2 weeks. This was also tested on dates measured in hours, months, and years.

Example:
image

How to reproduce:

Open any reddit post to a YouTube link that was created at least 7 days ago but not 14 or more.

A reproducible example can be found here. I used a hardcoded date instead of Date.now() to keep it consistent; the dates are around 10 days apart.

Voat CSS is messing with Youtube styles

I really like this extension but it needs to be more careful with its CSS. Your classnames are too generic and not scoped to just where they are needed so things like .message are causing the Youtube notification messages to be center aligned incorrectly.

In general when an extension injects CSS into an existing site you have to be very careful to very specifically name your classes or at least nest them one level in a uniquely named parent class so they don't impact existing styles on the page.

image

image

Feature Request: Only run on specific URLs

At the moment this chrome extension sends all browsing history to reddit. I personally only use this extension on youtube so it feels a little invasive.

I think an option for a list of allowed/blocked URLs would make this extension not feel like a privacy violation.

Update points after vote

When voting on a comment the points count doesn't update and the lack of feedback can be a little confusing. It would be nice if voting changed the score as expected.

FR: Order posts by most recent comment (and possibly other criteria)

Usually I'll be most interested in seeing the most recent conversation about the URL I'm in.

Would be great if there were a way to sort the post tabs (from left to right) by the date of the latest comment (so the post with the most recent comment shows first, on the left).

Other sorting criteria could be useful too, such as:

  • by post date
  • by post activity (total comments maybe)
  • by total likes

Feature suggestion.

i realize that the issue tabs is not exactly the best place to right about this but, i have a suggestion for your extension, 1) can we please use the shrink comment feature that is there on reddit, its really helpfull to swift through comments fast like that.

next i have a question for you,

  • when i upvote a comment, what account does reddit get the request to update as? (just curious as a i am new to the world of program)

and lastly, and i know you have been already informed about this but there are extra icons when you click and hold any interactive object, you said that this has been fixed and the app will be update very soon, so is this update going to be automatic?

Feature Request: Comment Caching

I'm not well-versed on the correct terminology to describe this feature, but it'd be great for both the user and Reddit's servers if comments were cached for at least a few minutes once loaded. If I accidentally click away, clicking back to view the comments causes another request to pull that data, unless it is already cached and it just takes a minute to populate locally regardless.

Love this software. Thank you!

"Sort By" inaccessible on lower resolution

When the extension is presenting the YouTube comments and the browser resolution is lower (haven't tested the exact number) the "Sort By" functionality isn't available.

Increase text contrast (Dark theme)

image

I find the grey text on a grey background a little hard to read especially for a large block of text. I think that white text would be more appropriate as it is easier to read and fits in with youtube's dark theme which also has white text.

Dark mode still doesn't work

image

Voat is not showing text correctly when Youtube is in dark mode, even if you manually set Voat to "dark mode" in extension settings.

Keep in mind many people use Youtube in dark mode even when their system isn't in dark mode, so detecting based just on system settings won't fix this either, needs to be relative to site settings.

Suggestion: Use YouTube's inbuilt colour variables for automatically matching the theme

To save the need for having a dark mode option, you could instead use YouTube's built in colour variables. (E.g. --yt-spec-text-primary is #0A0A0A when in light mode, and #FFF when in dark mode.) That way your additions will automatically match the theme that the user has set up

I don't think Google has an official list anywhere, so my three best suggestions for finding the full list of variables would be:

  1. Using inspect element to set something's colour to var(--yt) and see what's in the autocomplete options
  2. Have a look through this site, which seems to have compiled them: https://codepen.io/nandes2062/pen/RmNEMr
  3. Dig through the sources to try and find the CSS definitions yourself

Thanks for setting up the extension though! I've missed having AlienTube/SnooTube since they stopped working

EDIT: I just realised this extension is designed for working on any page, not just YouTube - so as an alternative, could I suggest automatically setting the dark mode option based on the browser's theme?

FR: Offer more general URL if current one has no posts

If an URL has no posts, I'd usually still be interested to have the option to check for posts on a more general URL.

For example, right now if I go to this URL (for an article in BBC):
"https://www.bbc.co.uk/news/live/world-europe-63454915"

I get the message:
"No posts found. Submit it."

I'd like this message to be expanded to:
"No posts found. Submit it or choose a different URL:
https://www.bbc.co.uk/news/live"

Where
If I click on "live", it shows posts for the URL up to "live".
If I click on "news", it shows posts for the URL up to "news"
If I click on "https://www.bbc.co.uk" it shows posts for the main website.

Might even be useful to somehow have this option even if there are posts for the current URL.

Another case where this would be useful is this very URL I'm on right now:
"https://github.com/z0ccc/Upvote-Anywhere/issues/new"

I would then be able to (in one click) check posts related to "https://github.com/z0ccc/Upvote-Anywhere"

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.