• Replacement Video Section 2.0 - Back with a Vengeance
    31 replies, posted
Improved version of the userscript I posted yesterday. I use Tampermonkey on Chrome but AFAIK it should work with anything. Removes all video threads from the General forum and places them in their own Videos section, all done by filtering the General section. DOWNLOAD How it looks: https://greasyfork.org/system/screenshots/screenshots/000/012/982/original/Videos_1.jpg?1542193809 https://greasyfork.org/system/screenshots/screenshots/000/012/983/original/Videos_2.jpg?1542193810 It is very hacky so feel free to tell me if you have any problems.
What exactly is the script looking for? Is it specifically the string [VIDEO] ?
It looks for the word video encased in square or round brackets, with any amount of text between the word and the brackets. So [VIDEO], (video), [🎥VIDEO🎥], [cool vIDeO] are all accepted.
gonna tag with curly brackets to break it
Could this be expanded to include threads with the TV icon? There are still some legacy mega threads around from the video section and not everyone puts [video] in the title.
Doesn't work with greasemonkey in my experience, but tapermonkey works fine like you said. You are a hero.
I could do that but I'm not sure if I should. Putting [VIDEO] in the title is unmistakable while the Television icon may be used for any other use.
but it's garry's own forums and he can do what he wants and you're not allowed to complain
Would you mind sending me the console output when using GreaseMonkey? Maybe I can fix it.
Is it possible to also make it display lmao pics threads at the top , because that and videos is the only thing I go to general for and it would be really convenient to have them both in one section.
Could the [Video] tag be removed when you're in the video section? Seems kinda redundant at that point. Still a great plugin, thanks a lot for making it.
Fixed Probably possible although very hacky, it'd be a different extension though. Done
Thanks for this, works great.
Loading failed for the <script> with source “https://www.googletagmanager.com/gtag/js?id=UA-29119593-1”. forum.facepunch.com:5:1 This library requires Greasemonkey! GM_setValue is missing. Facepunch Videos Section Replacement:677:13 This library requires Greasemonkey! GM_getValue is missing. Facepunch Videos Section Replacement:677:13 Script error:  ReferenceError: "GM_setValue is not defined"     set user-script:https%3A//forum.facepunch.com/Facepunch%20Videos%20Section%20Replacement:724:13     setVideoPageEnabled user-script:https%3A//forum.facepunch.com/Facepunch%20Videos%20Section%20Replacement:528:5     userScript user-script:https%3A//forum.facepunch.com/Facepunch%20Videos%20Section%20Replacement:640:9     userScript user-script:https%3A//forum.facepunch.com/Facepunch%20Videos%20Section%20Replacement:629:2     scopeWrapper user-script:https%3A//forum.facepunch.com/Facepunch%20Videos%20Section%20Replacement:836:9     <anonymous> user-script:https%3A//forum.facepunch.com/Facepunch%20Videos%20Section%20Replacement:505:17 Facepunch Videos Section Replacement:838:23
Alright, I've update the script. It should now work on Greasemonkey and other userscript extensions now.
Given that that, at the time of writing, the consensus is split 50/50% (6/6) on counting threads with the TV icon, I've update the script to provide a settings page where you can customize this option. DOWNLOAD What it looks like: https://greasyfork.org/system/screenshots/screenshots/000/013/018/original/settingbutton.jpg?1542477869 https://greasyfork.org/system/screenshots/screenshots/000/013/019/original/settingspage.jpg?1542477870
It should be fixed now. As a result, script should also now be page independent (i.e. you can have two different pages, one on Videos and the other on General). It is also possible to reach the Videos page directly using the following link: https://forum.facepunch.com/general?videos
I forgot to mention it (whoops) but a couple of days ago I actually updated the script. A button linking to this thread has been added to the settings. When creating a thread, the Video tag is automatically added when typing the title and the Television icon is selected by default (you can of course change it if you feel like it) These things are mostly for my own convenience but I figure somebody else may find them useful. The script now also checks for {video} tags. Not that anybody has ever used them, I'm only flexing on @AtomicSans .
I can only imagine this is what ancap would feel like
going to any section and then clicking back to go to the front page spawns a second videos section on firefox they stack http://puu.sh/C6Z44/98669e8360.png
It does not happen to me with Firefox and Greasemonkey. Do you have any particular settings enabled?
not that i can think of, also tried disabling all other addons and greasemonkey extensions except for this one and it still happens
THANK YOU, FINALLY !
It appears your Firefox is not reloading the page, just going to a cache when going back and forth. I think this may be a feature (to save data) but mine doesn't do it and I don't know what's the option to enable it vv Anyway, I changed the script, check if it still does it. Can't check myself!
yup, that fixed it thanks a bunch, keep up the good work
Could we get more threads per a page?
It is probably possible in one way or another, but I feel like it wouldn't be worth the effort. I'll look into it. I'm also taking the occasion to say that I've made a small addition to the script. There is now an option (off by default) called "Attempt to include threads with misspelled tags" which tries to do what it says on the tin, but could cause false negatives. I've also made the removal of the tags an option (which is ON by default, so behaviour won't change if the script is updated), rather than forcing it.
https://www.youtube.com/watch?v=649froZBVho The actual Video section's been here for a while now, so I guess RVS is officially dead. Thanks to everybody who gave me feedback, this was very good JavaScript practice.
Sorry, you need to Log In to post a reply to this thread.