您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
可快速看完中色Oa内的视频
当前为
// ==UserScript== // @name 中色科技视频快进 // @namespace xcg // @version 1 // @match *://192.1.1.86/*Video.aspx* // @match *://192.1.1.86/*VideoList.aspx* // @match *://192.1.1.86/*VideoData.aspx* // @require http://cdn.bootcss.com/jquery/1.8.3/jquery.min.js // @grant none // @description 可快速看完中色Oa内的视频 // ==/UserScript== (function () { 'use strict'; var video = /Video.aspx/i; var VideoList = /VideoList.aspx/i; var VideoData = /VideoData.aspx/i; var url = window.location.href; var Btn1 = '<a id="fastBtn" style="cursor:pointer;text-decoration:none;color:red;padding:2 5px;border:1px solid red;">快进</a>'; var Btn2 = '<a id="fastBtn2" style="cursor:pointer;text-decoration:none;color:red;padding:2 5px;border:1px solid red;">全部打开</a>'; var Btn3 = '<a id="fastBtn3" style="cursor:pointer;text-decoration:none;color:red;padding:2 5px;border:1px solid red;">全部快进</a>'; if (video.test(url)) { var title = $('body') if (title.length !== 0) { title.after(Btn1); $('#fastBtn').css({ 'font-size': '30px', 'display': 'inline-block', 'height': '40px', 'line-height': '40px', 'line-width': '80px', 'margin': '2 5px', 'vertical-align': 'bottom' }); // var url2= url.replace(/video/i, 'SetFinish'); // $('#fastBtn').attr('href', url2); } } if (VideoList.test(url)) { var title = $('.Grid'); if (title.length !== 0) { title.after(Btn3).after(Btn2); $('#fastBtn2').css({ 'font-size': '30px', 'display': 'inline-block', 'height': '40px', 'line-height': '40px', 'line-width': '80px', 'margin': '2 5px', 'vertical-align': 'bottom' }); $('#fastBtn3').css({ 'font-size': '30px', 'display': 'inline-block', 'height': '40px', 'line-height': '40px', 'line-width': '80px', 'margin': '2 5px', 'vertical-align': 'bottom' }); // var url2= url.replace(/video/i, 'SetFinish'); // $('#fastBtn').attr('href', url2); } } if (VideoData.test(url)) { var title = $('.Grid'); if (title.length !== 0) { title.after(Btn3).after(Btn2); $('#fastBtn2').css({ 'font-size': '30px', 'display': 'inline-block', 'height': '40px', 'line-height': '40px', 'line-width': '80px', 'margin': '2 5px', 'vertical-align': 'bottom' }); $('#fastBtn3').css({ 'font-size': '30px', 'display': 'inline-block', 'height': '40px', 'line-height': '40px', 'line-width': '80px', 'margin': '2 5px', 'vertical-align': 'bottom' }); // var url2= url.replace(/video/i, 'SetFinish'); // $('#fastBtn').attr('href', url2); } } $('#fastBtn').on('click', function () { var url3 = url.replace(/video/i, 'SetFinish'); window.open(url3); }); $('#fastBtn2').on('click', function () { var test = $('.Grid').find('a'); test.each(function () { var url4 = $(this).attr('href'); window.open(url4); }) }); $('#fastBtn3').on('click', function () { var test = $('.Grid').find('a'); test.each(function () { var url4 = $(this).attr('href').replace(/video/i, 'SetFinish'); window.open(url4); }) }); }) ();