Temporary test video for testing YT bug fix:
So I wrote a script a while back for the old site, here’s the old thread:
which kind of handled some things I really thought the old vBulletin site needed. The most important of which was the ability to flag a thread ignored and never see it unless you clicked a button to show the threads you’d ignored. As you might guess, the move to Discourse completely obviated the need for such a script. But it did present an opportunity for new things to change. As Discourse evolves, many of the changes my script makes will also become obsolete, but I think there are also some choices in this software that probably won’t ever be changed that I believe the user should be able to decide as a preference.
So I made a new script for the new site. I made some posts over in the Stylish theming thread here when I was working on it, and some of you are already using it (thanks for the feedback):
But maybe it’s time I make a thread just for it so people can find it if they want it. So, here’s that thread.
Here is a “what is a user script” page as well as how to install a user script (basically you just install the tampermonkey extension in Chrome or greasemonkey in FF and click a link):
Here is the link you click for the user script once you can install them: https://github.com/matthewboonstra/qt3UserScript/raw/master/QuarterToThreeDiscourseForumHelper.user.js
If you want to review the source to check for funny business, feel free: https://github.com/matthewboonstra/qt3UserScript/blob/master/QuarterToThreeDiscourseForumHelper.user.js
Install instructions (summary):
After you install TamperMonkey (Chrome), or GreaseMonkey (Firefox) and then click the link above, it will ask you if you want to install the user script. Say yes, and you’re good to go. If it’s the first time you’ve installed TamperMonkey or GreaseMonkey, then try to restart your browser if it’s not working right away.
What does it do?
1 . Enables night theme as an option (if you want different theme options and have CSS for them, send me a PM and I could add more)
Discourse has this already on the roadmap, so it will go the way of the dodo hopefully soon.
Go to your user settings page:
And at the bottom you should see an option for themes.
Click Night theme and then “Save Changes” and voila (you need to refresh for other tabs you have open):
Thanks to @Sam_Jones for his stylish css here The Stylish/User CSS library (wiki post!) that I grabbed for this and @Fishbreath for starting/managing the stylish thread where these themes were worked on.
2 . Gives an option for real “muting” for users.
Thanks to Diddums for the sample screenshot, no I didn’t mute him. What you do here is you click someone’s name on a post to get their user card, and on that card will be an option to Mute User. This ties into Discourse’s muted users option in settings, which only mutes notifications for when they tag you, I think. The script supercharges it and blurs their posts:
You can click to reveal the post. It uses that muted users line in your settings so it will just add names there and then add the cool styles to blur their stuff. In the next version, you can click their user name again and unmute them in their user card if you change your mind. For now, it’s still not hard to remove them from muting, just go to your Discourse user settings and click the x by their name in the muted users list. Then, as always, click Save Changes.
3 . Absolute dates on posts
This will be an option in the next version, for now it just changes all the relative dates (i.e. “28m”, “9h”, “3d”) to absolute ones (“i.e Aug 10, 2016 2:32 pm”)
4 . (obsoleted/not working) Fixes Youtube video full screen bug where it blows up periodically and kills the video
Actually, there is still an issue with this and it’s somewhat unnecessary now. @eviltrout made a Discourse version of the hack I made for this and added it to Discourse proper (thread post here: Discourse Changes & Enhancements) but I noticed there are other things that break full screened Youtube videos :(
Specifically if you are watching a fullscreen video and someone posts something new or edits a post in the thread, it will kill your video when it refreshes the page to update the screen (since it causes the scroll event to fire). I think some other polling events might kill it too. My code is still in the script, but the part that it fixes is probably already in Discourse now and unneeded, so I’ll probably cut it out later after testing. Not sure what to do about the new post/refresh problem, I think I’d have to edit the actual Discourse source to fix that one from killing your full screened videos. I’d still recommend clicking the YT video title and open it on youtube itself for full screen for now.
That bit is for me. Thanks, @stusser.