GithubHelp home page GithubHelp logo

mattie432 / youtweak Goto Github PK

View Code? Open in Web Editor NEW
26.0 13.0 9.0 4.91 MB

Add enhanced functionality to youtube in the form of a multitude of tweaks.

Home Page: https://chrome.google.com/webstore/detail/youtweak-for-youtube-remo/cfgpigllcihcpkbokdnmpkjobnebflgh

License: MIT License

Python 1.89% JavaScript 66.46% HTML 30.12% CSS 1.52%
subscriptions-videos youtube remove-videos javascript hide-videos video watch history

youtweak's Introduction

YouTweak

Join the chat at https://gitter.im/YouTweak/Lobby

Overview

This extension aims to fix some fundamental problems that I have with youtube (you can see all of the additons listed below). It is currently available as a Chrome Extension and there are plans to expand to FireFox as well.

Image

Features

  • Remove Subscription Videos

This feature makes it easier to delete unwanted videos from your YouTube homepage. The current YouTube layout seems to discourage the use of the 'Hide video' option previous layouts featured prominently. This feature intends to fix this, giving the user a per-video dedicated button for the removal of the video. This button instigates YouTube's own hide video feature which means that hiding it with this app also hides it if you were to sign in from a different computer without the app. (Please read the notes section when using this feature).

  • Remove Watched Videos

This feature makes your homepage much cleaner by removing any subscription videos that you have already watched. When activated you will notice a new button added to the left navigation column of the homepage. When clicked any videos in your current subscriptions are removed. (Please read the notes section when using this feature).

Please note: you need to have "Watch History" unpaused for this feature to work as it uses YouTube's data to see if a video has been watched or not. This can be enabled in your History tab.

  • YouTube Subscriptions as Default Page

Automatically redirects you to Uploads only of your subscriptions. This changes the URL that the icon at the top left of every YouTube page links to. The default link is to "youtube.com" which shows all of your subscriptions and recommended videos mixed together. By default the app redirects to "youtube.com/feed/subscriptions" which only shows your subscriptions videos (but this can be set manually to any URL).

  • Remove all subscription videos

This adds a button to the homepage which when clicked will cycle through all of your subscriptions and remove them, leaving you with a clean homepage ready for new subscriptions to be easily visible. (Example for use could be after returning from holiday and clearing the weeks of subscription buildup, or when a channel uploads many videos that clog-up your subscription feed)

  • Load all subscription videos

This adds a button to the homepage which when clicked loads all of the pages of your subscriptions into view, allowing you to browse them all without having to reload the page. This can make it easier when removing videos you do not want to watch.

  • Collapsible Subscription Groups

This allows you to collapse the 'Today', 'Yesterday', etc subscription groups which are present on the grid subscription view. A collapse button will be added to the left of the group name which will toggle the visible state of the groups videos. You can also elect to have videos older than 'This Week' automatically collapsed when the page loads.

  • Remove "Recommended Channels" (Feature removed Apr 2016)

This removes the "Recommended Channels" box from the homepage increasing the amount of screen space used for your subscriptions by a substantial amount. This works on not only the "Uploads" feed but also the "All activity" feed making it easier to view your content.

  • Auto like videos (Feature removed Apr 2016)

This feature allows you to enter the names of channels you wish to automatically like upon watching their video

Updates

Due to the constant changes implemented by YouTube it will be necessary to update this extension to reflect these changes. Rest assured that I am highly motivated to keep this app up to date as I am myself a fellow user.

The code for this extension is open source and will be commited to this GutHub repo whenever there is an update or a significant change has been made.

Notes

Please understand that this extension relies on YouTube's ability to hide videos from their homepage. If for some reason the site has a problem with this feature then this extension may not function properly. If this is the case then we both have to wait for YouTube to fix their problem. The functionality of Remove Subscription Videos & Remove Watched Videos is currently compromised by an ongoing (*read intentional*) issue with YouTube which has been present for many since 2014. Please see this issue for more details. While the button to remove videos will still be present, videos older than a week may 'pop back' on page refresh. I suggest using the Collapsible Subscription Groups feature to automatically collapse videos which cant be hidden.

Links

Download from Chrome Webstore

Personal website (Contact information can be found here)

youtweak's People

Contributors

gitter-badger avatar mattie432 avatar mickael9 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

Watchers

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

youtweak's Issues

Use JSON instead of XML for messages input

I would suggest that you change your Messages location into JSON. Reducing code liability into JSON.parse( xhrContent ) Making long term maintenance much better.

It would look like this

[
	{ "show" : "true" },
	{
		"num" : 15,
		"date" : "2015/04/11",
		"text" : "YouTube is having some issues removing videos at the moment. Clicking remove *will* clear the video, however it may take some time to register and subsequently may show for a while after the page is refreshed. If you refresh the page a few times then YouTube should catch up and eventually not show the video.",
		"ttl" : 7
	}
]

Instead of this

<?xml version="1.0" encoding="utf-8"?>
<messages>
	<show>true</show>
	<message>
		<num>15</num>
		<date>11th Apr 2015</date>
		<text>YouTube is having some issues removing videos at the moment. Clicking remove *will* clear the video, however it may take some time to register and subsequently may show for a while after the page is refreshed. If you refresh the page a few times then YouTube should catch up and eventually not show the video.</text>
		<!-- Time to live of the message in days -->
		<ttl>7</ttl>
	</message>
</messages>

Add all subscription vids into 'watch later'

please rework this code to add all subscription vids into 'watch later' this somewhat works but not quite. This would be veyr helpful.

code:

javascript:
var x = document.getElementsByClassName("contains-addto ");
for (var k = x.length - 1; k >= 0; k--) {
if (!x[k].classList.contains("watched")) {
x[k].getElementsByClassName("addto-watch-later-button")[0].click();
}
}

thanks
th86

error installing from chrome web store

When clicking on "+add to chrome" button and confirming new extension the following error is shown:

Package is invalid. Details: 'Could not load background script 'backgroundPage/eventPage.js'.'.

OS: Fedora Linux 22
Chrome: Version 43.0.2357.81 (64-bit)

but the same happened on Fedora 21 past week, and Linux Mint on other box ...

Not going to "my subscriptions"

Basically when I go to youtube through a new tab then it redirects me, but after i watch a video and click that "YouTube" button in the top left corner it doesnt redirect me.. never..

Clear all videos issue

Struggles when clearing large numbers of videos. Possibly due to quickness if iteration when clicking the remove button for each video. Investigate if need to slow down iteration, process removal in batches (10 at a time) or wait some time after for yt to catch up.

YouTweak is abandoned

New Layout on YouTube broke this extension. Author is no longer supporting this and it no longer works.

Update Options page

Improve clarity of descriptions & tooltips

request: "Maybe change the color from gray to something else and make it a little bigger"

[Suggestion] Record date when subscribed, to later be able to sort by recent subscriptions

youtube doesn't have feature to view recently subscribed channels, if you could record dates when user makes subscription to specific channel than you can show recently subscribed channels, and also could sort channels by date
I searched extensions for this purpose and found this one, I want to say maan this extension is great, thank you for developing such a cool extension

Default tab on channel page.

Any chance you could add a feature that lets you choose the default tab when loading an channel page? For example I'd like the 'videos' tab to load when I select a channel from the side bar (the other 'tabs' I'm referring to include 'home', 'playlists', 'channels', 'discussion', and 'about').

  • WIll

Add 'TTL' to the messages.

Should have a time to live on the messages so that If i forget to remove them they are not shown after X time.

Videos not removing.

As the title says, I click Remove Video the button will animate but the video will not remove at all, same applies for Remove watched videos both manual and automatic.

All other features such as Change the YouTube icon URL, redirect youtube.com and autolike still work.
I have not tested clear all videos.

I am using the latest version of chrome Version 46.0.2490.71 m, I disabled all other addons and extensions to rule out conflicts.

Redirect doesn't work

I have to set to redirect "youtube.com" to my subs page, but it's not doing so. It just takes me to the "what to watch" page,

Remove watched videos options have no effect anymore

Maybe they changed something on youtube but this used to work like 1 week ago, stopped working days ago. The new update(master, latest commit) didn't change anything(in regards to this): still not working.

These are options which are enabled but have no effect as far as I can see:
Enable "Remove all watched videos".
Automatically remove watched videos.

Thank you.

Autohide >3rd page is broken

Autohide (Automatically remove watched videos) works on 1st & 2nd page well, but after 2nd click on "Load more" - doesn't hide videos. if disable "Automatically remove watched videos", and manually click on "Remove watched videos" - works fine everywhere.
p.s. sry for my bad english =)

Incorrect collapse of videos

Hi Mattie I downloaded YouTweak today, and it mostly works. I'm running into a problem though where videos just posted today are being placed into the "this month" section, and then are being collapsed.

Reset channels new videos counter

I don't know if its possible but it would be great to add an option just to reset the number counters next to subscribed channel names that showing the number of not watched videos.

I know it resets if i watch all of them or use your "clear all video button", but I don't want to hide all videos in main subscription page. I want to leave the videos(seen or unseen) in subscription page and just reset these counters.these counters resets if you go to "video" sector of selected subscribed channel without having to watch or hide them.

Add some level of backwards compatibility

YouTube tends to roll out its update in stages, some people using the extension get the new version quicker than others. Pushing an update to the chrome store can sometimes leave some people still on the older YouTube page unable to use the extension.

Should add multiple stages for accessing the required elements.

Remove videos older than a week

Appears to be an issue with removing videos older than a week. Youtube's 'hide' implementation appears to be broken (and has been for some time discussion 1, discussion 2). Unfortunately YouTweak relies on this functionality so there isn't much I can do...

Remove button no longer appears.

The remove button , Clear all videos button and the youtube redirect link all stop working yesterday afternoon. I have tried uninstall reinstall , multiple page refreshes and the previous rollback version . I am assuming youtube has updated or changed something that has broken these function perhaps?.

After youtube update

Update pls, after another change in youtube interface - doesn't work
[no buttons, dont hide watched etc]

Extention dont work.

Hi im using latest chrome, and extension is not working at all.
I tried different options and nothing.

Auto like functionality

I would like to see a feature that gives the opportunity to choose between: 1. Auto like all videos you watch 2. Auto like all videos you spend more than X minutes watching 3. Auto like all videos in your watch later list 4. And of course todays functionality 5. And maybe more alternatives that I can't think of now...

Can't Install Extension. Error.

Whenever I attempt to add this plugin via the Chrome Web Store I get the following error: Package is invalid. Details: 'Could not load javascript 'contextscripts/homepage_loadatend.js' for content script.'. Is it possible your capitalization for homepage_loadAtEnd.js is incorrect?

No longer functioning on my chrome browser

For some reason the extension no longer works on my browser. I can still go in and update preferences settings, but my subscriptions page looks the same as always. It has been working for months and I quite love it, so this is making me very sad. :-( Any help would be greatly appreciated. I've already tried restarting, btw :-)

An option to have keywords marked as watched and hidden away

There is something i found i would like to see added, an option to have keywords marked as watched and hidden away. I find myself having to skip over videos all the time that i would not like watching but is content that the youtubers i subscribe to has.

There is extension that i use for facebook:http://www.fbpurity.com/ this ext. lets me finally fix my news feed and get rid of all the junk that can build up, including any custom words i add to their list.

From email, Juan

New youtube update completely breaks YouTweak!

You're old pal YouTube decided to update their layout making everything look gross. But thats not the worst of it... the addon is totally broken.

I need this addon to survive. Please.

Broken Autolike

Recently there has been an issue with the auto like system. Every time I watch a video that gets auto liked, I continuously get the notification that I have liked the video (The little blue check mark at the top that says "added to liked videos". It seems like YouTweak is liking the video over and over and over again, rather than just liking it once. It's not the biggest deal, but it gets annoying seeing that little blue check mark flash in the upper left corner every 3 seconds.

Also, hey, YouTweak is an awesome extensions that I really enjoy. So high five. o/

Filter subscription videos

My main suggestion however, is this: Could it be possible to filter videos, and hide videos from the specified filter? For instance, on Vechs' channel, I'd like to see all videos he uploads except "Knights of Pen and Paper."

That feature would increase your extension's value to me by a lot, and I'm sure other people would love it as well.

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.