一、先进入网页百度网盘,找一个要播放的视频,点击分享,选择时间为永久(现在不点击分享确定按钮)

if(document.getElementById("share-method-private")){document.getElementById("share-method-private").value="public";alert("执行成功,请点击创建链接生成你公开链接!")}else{alert("请先选择要分享的文件并弹出分享框后再执行此代码!(但在点击创建链接按钮前执行该代码)")}

按F12进入控制台 输入以上代码回车 然后再点击分享按钮

二、把生成的地址放在src里面

<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>视频</title>
	<link rel="stylesheet" href="">
	<style type="text/css">
		.wrapper{position: absolute;left:50%;top:50%;margin-left:-373px;margin-top:-305px;}
		.kjss{overflow:hidden;}
		iframe.kjs{margin-top: -190px;}
	</style>
</head>
<body>
	<div class="wrapper">
		<div class="kjss" align="center">
			<iframe width="755px" height="610px" src="生成的地址" scrolling="no" hspace="-100" vspace="-160" style="border:none;" class="kjs" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe> 
		</div>
	</div>
</body>
</html>

三、哔哩哔哩(bilibili)的iframe自动视频播放

在地址后面加上:&rel=0&amp&autoplay=1  如:

<iframe width="755px" height="550px" src="//player.bilibili.com/player.html?aid=412838521&bvid=BV1gV411Z7eS&cid=181345113&page=1&rel=0&amp&autoplay=1" scrolling="no" hspace="-100" vspace="-160" style="border:none;overflow:hidden" class="kjs" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe> 

 

最后修改于 2020-04-21 16:48:40
如果觉得我的文章对你有用,请随意赞赏
扫一扫支付
上一篇