online_video

可以拖动视频

  1. // ==UserScript==
  2. // @name online_video
  3. // @namespace online_video
  4. // @version 0.1
  5. // @description 可以拖动视频
  6. // @author nelson guo
  7. // @match http://61.157.140.45/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11.  
  12. function getQueryString(name) {
  13. var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
  14. var r = window.location.search.substr(1).match(reg);
  15. if (r != null) return unescape(r[2]); return null;
  16. }
  17.  
  18. (function(){
  19. 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>";
  20. document.getElementById("___1").innerHTML = btn
  21. function showMyTest(){
  22. var myId = getQueryString("id");
  23. SetCookie("test",myId);
  24. open_test();
  25. }
  26.  
  27. document.getElementById("goTest").onclick = showMyTest;
  28. })();