Unofficial Tek Syndicate Forum Extension for Google Chrome
So I was on YouTube reading through the terrible, terrible comments there and wished I could be super lazy and have the comments from the Tek Syndicate forum right under my video, so I wrote this extension to do just that, put the forum comments under any Tek Syndicate video.
Looking pretty smexy I might add.
How does it work?
- Checks that this is a Youtube page.
- Finds the channel ID of the author on the page to make sure it's a Tek Syndicate video
- Kills the YouTube comments.
- Scans through the channel description to find the link to the video page on teksyndicate.com
- Loads that page in a new window, trying to hide the window from view
- It then pulls the link the iframe is pointing to, and rewrites the entire page to the contents of the iframe.
- The extension finally writes all of the HTML it got to a new div where the YouTube comments would be.
As you can probably tell, this is super hacky. Because of how script-kiddish this is, there are some bugs/issues right now:
- The code is super stitched together, and not finished.
- A window has to open in the background, which is super annoying.
- The Tek Syndicate button at the top doesn't do anything right now.
Basically the entire thing will need recoding sometime in the future, this is more a proof of concept rather than early access ;)
Source Code: https://github.com/benjamingwynn/teksyndicate-chrome-plugin
@wendell If it's not too much of a security concern, modifying your cross origin policies would be a great help to this project and simplify things a lot.
Cheers! The main road bump I'm having right now is just the way YouTube loads, I'll probably just end up disabling it for the meanwhile.
I don't see the advantage of staying in youtube. If I were making this extension I would just make it redirect the youtube page to the corresponding post in teksyndicate.com. So that when I click on a teksyndicate video in my subscription feed in youtube I get redirected to the post.
From a practical perspective it's a much simpler solution but I see how your's can be more appealing.
That's a cool idea. In the future I might make that an option once I iron out the current bugs with the extension.
two requests 1) open source it on github (link plz) and 2) rewrite links to amazon/etc with our affiliate code. note that you need to do some work to figure out where the user is (probably their codepage) to know to send them to amazon jp, eu, us, etc. ?
ps. I will look into allowing youtube cors but there are security implications and there have been a lot of other folks that have tried to do bad things that our cors policy has stopped.
Source code is here: https://github.com/benjamingwynn/teksyndicate-chrome-plugin it's still super messy and hacked together but it works as a proof of concept for now
I'm not sure what you mean with the Amazon affiliate code though, could you clear that up a bit please?
Hey that's me! I'm PixelPrimer woot. xD This looks awesome but I also agree @holbot I don't usually watch Tek Syndicate videos on YouTube. I always click to go to their website, so a redirect option would be amazing!
P.S. Please give firefox some love, I love the idea of this addon
Sure, a redirect option looks like it's definitely going to be a thing once this project gets a bit more stable. Firefox will also receive some love once the Chrome version is considered stable enough to be usable :)
for affiliate stuff. include it and use our code plz.get our codes from teksyndicate.com/teksupport
Okay, this is going to be an opt-in feature though, just in case users want to support someone else or for whatever reason don't want to support anybody.
I just download the video and watch with vlc
This extension will probably do other stuff in the future too such as add Tek Syndicate affiliate codes to Amazon links. It also has the raze the world symbol up in the top right which looks really cool imo.
unsure if I like this do like to support Logan don't like amazon
got me there
What are the install directions?
It's not stable yet, but if you download the stuff on the GitHub repo, go to chrome:extensions in Chrome, turn on developer mode with the checkbox and then click "load unpacked extension" you can test it out.
Again, it's not stable. The reason its not working is because of three problems:
- The Tek Syndicate Hardware channel wasn't in the list of Tek Syndicate channels until just a few minutes ago (I saw this video and realised I had only included the main channel in the array)
- There is no link to the video page in the description, which is required for the extension to work. @wendell, @Logan or another member of Tek Syndicate would need to include the teksyndicate.com/video/... link in the description for it to work.
insert Tim Taylor grunts of annoyance here