您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
可以拖动视频
- // ==UserScript==
- // @name online_video
- // @namespace online_video
- // @version 0.1
- // @description 可以拖动视频
- // @author nelson guo
- // @match http://61.157.140.45/*
- // @grant none
- // ==/UserScript==
- function getQueryString(name) {
- var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
- var r = window.location.search.substr(1).match(reg);
- if (r != null) return unescape(r[2]); return null;
- }
- (function(){
- var btn = "<a id='goTest' href='###' style='display:inline-block;width:160px;height:45px;background:#f0f2f3;color:red;line-height:45px;font-size:17px;text-align:center;padding-right:10px;'>不看视频立即测试</a>";
- document.getElementById("___1").innerHTML = btn
- function showMyTest(){
- var myId = getQueryString("id");
- SetCookie("test",myId);
- open_test();
- }
- document.getElementById("goTest").onclick = showMyTest;
- })();