This script dynamically embeds YouTube players into reddit comments wherever a comment references a YouTube video URL. It is a prototype of functionality I would like to see added to RES.
In Chrome:
- Download the Personalized Web extension
- Create a new rule:
- Rule name:
YouTube embedded in reddit comments
- Match URLs:
^http://.+reddit.+\/
- In 'Add HTML', paste the contents of script.js in this gist
- Rule name:
- Click Save button.