V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐关注
Meteor
JSLint - a JavaScript code quality tool
jsFiddle
D3.js
WebStorm
推荐书目
JavaScript 权威指南第 5 版
Closure: The Definitive Guide
rzzm
V2EX  ›  JavaScript

[原创] userscript 播放动画作为网页背景

  •  
  •   rzzm · 2020-02-02 01:33:02 +08:00 · 1707 次点击
    这是一个创建于 1545 天前的主题,其中的信息可能已经有所发展或是发生改变。

    https://greasyfork.org/en/scripts/395910-video-background

    Compatibility: Firefox/Chrome, Greasemonkey/Tampermonkey

    This script play video as background in web page. but because browser security restrictions, userscript can not directly play video from local, so need a tiny soft: HFS, it's use to run a Http Server in you system, don't worry, unless you open Port(80) in your Router, otherwise this Http Server are totally private. and HFS is very easy to use, you can download from official site: https://www.rejetto.com/hfs/?f=dl

    and don't worry about slow down you compute, the video will pause when you switch Tab or Minimize Window, performance cause just like playing youtube.

    My personal opinion: the effect are unexpected, my screen shot may not look like so, because it's not moving.

    Usage: 1: Open HFS, drop your video folder into, 2: copy the Url show in HFS, 3: Paste it to this userscript setting: "Set root url", 4: refresh page. 5: if the background video makes text unrecognizable, there have a Button on the top, will give all Text white BG-color.

    *script will loop through all sub folder, randomly play, so just need set root folder. *you may set HFS start with windows. *for best performance, script will not check file every time open web page, the file list will be stored 24 hours.

    01

    02

    03

    04

    05

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5440 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 07:34 · PVG 15:34 · LAX 00:34 · JFK 03:34
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.