OdysseusVA
Banned
I noticed it was asked earlier but no one answered, why not WebP?
WebM for NeoGAF (Chrome extension)
Making that stupid screenshot took most of the time, lol. If anyone wants to port it to Firefox or whatever the code ain't complex:
There might even be a better way to do it, dunno. Spent about 10 minutes on this haha.
WebM for NeoGAF (Chrome extension)
Making that stupid screenshot took most of the time, lol. If anyone wants to port it to Firefox or whatever the code ain't complex:
Code:'use strict'; var videos = document.querySelectorAll('.post a'), link, video; for (var i = 0; i < videos.length; i++) { link = videos[i].href; if (link.indexOf('.webm') === link.length - 5) { video = document.createElement('video'); video.src = link; video.autoplay = true; video.loop = true; video.muted = true; video.width = '500'; videos[i].parentNode.replaceChild(video, videos[i]); } }
There might even be a better way to do it, dunno. Spent about 10 minutes on this haha.
well, you had a good run firefox.WebM for NeoGAF (Chrome extension)
Making that stupid screenshot took most of the time, lol. If anyone wants to port it to Firefox or whatever the code ain't complex:
Code:'use strict'; var videos = document.querySelectorAll('.post a'), link, video; for (var i = 0; i < videos.length; i++) { link = videos[i].href; if (link.indexOf('.webm') === link.length - 5) { video = document.createElement('video'); video.src = link; video.autoplay = true; video.loop = true; video.muted = true; video.width = '500'; videos[i].parentNode.replaceChild(video, videos[i]); } }
There might even be a better way to do it, dunno. Spent about 10 minutes on this haha.
WebM for NeoGAF (Chrome extension)
Making that stupid screenshot took most of the time, lol. If anyone wants to port it to Firefox or whatever the code ain't complex:
Code:'use strict'; var videos = document.querySelectorAll('.post a'), link, video; for (var i = 0; i < videos.length; i++) { link = videos[i].href; if (link.indexOf('.webm') === link.length - 5) { video = document.createElement('video'); video.src = link; video.autoplay = true; video.loop = true; video.muted = true; video.width = '500'; videos[i].parentNode.replaceChild(video, videos[i]); } }
There might even be a better way to do it, dunno. Spent about 10 minutes on this haha.
PSY・S;107209442 said:It works but CPU usage is crazy high.
PSY・S;107209442 said:It works but CPU usage is crazy high.
I noticed it was asked earlier but no one answered, why not WebP?
So how would I go about changing the maximum width? I feel like 500 is too limiting.
WebM for NeoGAF (Chrome extension)
Making that stupid screenshot took most of the time, lol. If anyone wants to port it to Firefox or whatever the code ain't complex:
Code:'use strict'; var videos = document.querySelectorAll('.post a'), link, video; for (var i = 0; i < videos.length; i++) { link = videos[i].href; if (link.indexOf('.webm') === link.length - 5) { video = document.createElement('video'); video.src = link; video.autoplay = true; video.loop = true; video.muted = true; video.width = '500'; videos[i].parentNode.replaceChild(video, videos[i]); } }
There might even be a better way to do it, dunno. Spent about 10 minutes on this haha.
WebM for NeoGAF (Chrome extension)
Making that stupid screenshot took most of the time, lol. If anyone wants to port it to Firefox or whatever the code ain't complex:
Code:'use strict'; var videos = document.querySelectorAll('.post a'), link, video; for (var i = 0; i < videos.length; i++) { link = videos[i].href; if (link.indexOf('.webm') === link.length - 5) { video = document.createElement('video'); video.src = link; video.autoplay = true; video.loop = true; video.muted = true; video.width = '500'; videos[i].parentNode.replaceChild(video, videos[i]); } }
There might even be a better way to do it, dunno. Spent about 10 minutes on this haha.
WebM for NeoGAF (Chrome extension)
I could make an options page I guess...
Til then you can always right click and open in a new tab.
oh my god it works so wellWebM for NeoGAF (Chrome extension)
Making that stupid screenshot took most of the time, lol. If anyone wants to port it to Firefox or whatever the code ain't complex:
Code:'use strict'; var videos = document.querySelectorAll('.post a'), link, video; for (var i = 0; i < videos.length; i++) { link = videos[i].href; if (link.indexOf('.webm') === link.length - 5) { video = document.createElement('video'); video.src = link; video.autoplay = true; video.loop = true; video.muted = true; video.width = '500'; videos[i].parentNode.replaceChild(video, videos[i]); } }
There might even be a better way to do it, dunno. Spent about 10 minutes on this haha.
WebM for NeoGAF (Chrome extension)
Making that stupid screenshot took most of the time, lol. If anyone wants to port it to Firefox or whatever the code ain't complex:
Code:'use strict'; var videos = document.querySelectorAll('.post a'), link, video; for (var i = 0; i < videos.length; i++) { link = videos[i].href; if (link.indexOf('.webm') === link.length - 5) { video = document.createElement('video'); video.src = link; video.autoplay = true; video.loop = true; video.muted = true; video.width = '500'; videos[i].parentNode.replaceChild(video, videos[i]); } }
There might even be a better way to do it, dunno. Spent about 10 minutes on this haha.
This is the new hotness for presenting gamesand porn
toggle large size by left clicking (like the default here for large pics)?
WebM for NeoGAF (Chrome extension)
Making that stupid screenshot took most of the time, lol. If anyone wants to port it to Firefox or whatever the code ain't complex:
Code:'use strict'; var videos = document.querySelectorAll('.post a'), link, video; for (var i = 0; i < videos.length; i++) { link = videos[i].href; if (link.indexOf('.webm') === link.length - 5) { video = document.createElement('video'); video.src = link; video.autoplay = true; video.loop = true; video.muted = true; video.width = '500'; videos[i].parentNode.replaceChild(video, videos[i]); } }
There might even be a better way to do it, dunno. Spent about 10 minutes on this haha.
WebM for NeoGAF (Chrome extension)
Making that stupid screenshot took most of the time, lol. If anyone wants to port it to Firefox or whatever the code ain't complex:
Code:'use strict'; var videos = document.querySelectorAll('.post a'), link, video; for (var i = 0; i < videos.length; i++) { link = videos[i].href; if (link.indexOf('.webm') === link.length - 5) { video = document.createElement('video'); video.src = link; video.autoplay = true; video.loop = true; video.muted = true; video.width = '500'; videos[i].parentNode.replaceChild(video, videos[i]); } }
There might even be a better way to do it, dunno. Spent about 10 minutes on this haha.
WebM for NeoGAF (Chrome extension)
Making that stupid screenshot took most of the time, lol. If anyone wants to port it to Firefox or whatever the code ain't complex:
Code:'use strict'; var videos = document.querySelectorAll('.post a'), link, video; for (var i = 0; i < videos.length; i++) { link = videos[i].href; if (link.indexOf('.webm') === link.length - 5) { video = document.createElement('video'); video.src = link; video.autoplay = true; video.loop = true; video.muted = true; video.width = '500'; videos[i].parentNode.replaceChild(video, videos[i]); } }
There might even be a better way to do it, dunno. Spent about 10 minutes on this haha.
Making that stupid screenshot took most of the time, lol. If anyone wants to port it to Firefox or whatever the code ain't complex:
Code:*snip*
There might even be a better way to do it, dunno. Spent about 10 minutes on this haha.
There might even be a better way to do it, dunno. Spent about 10 minutes on this haha.
Guys, guys......
What is going to happen if I post my 2 minute looping 2560 x 1600 webm?
Am I going fry thousands of CPUs around the world?
Does guys like it better if they auto play or not?
I'm only getting 12% usage and I have 3DS Max running in the background.PSY・S;107209442 said:It works but CPU usage is crazy high.
WebM for NeoGAF (Chrome extension)
That's an even better idea.
Knocked together a Greasemonkey version of Andrex's code, for the Firefox users.
Works in Opera Mobile, Android native browser, Android Chrome, and Android Firefox. No support on iOS since all browsers on iOS are just skins of Safari's rendering engine and Safari doesn't support it anywhere.