您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
try to take over the world!
当前为
- // ==UserScript==
- // @name Intro skipper
- // @version 0.1
- // @description try to take over the world!
- // @author lolamtisch@gmail.com
- // @license Creative Commons; http://creativecommons.org/licenses/by/4.0/
- // @supportURL https://discord.gg/cTH4yaw
- // @include *
- // @grant GM_getValue
- // @grant GM_setValue
- // @grant GM_notification
- // @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
- // @namespace https://greasyfork.org/users/92233
- // ==/UserScript==
- (function() {
- 'use strict';
- var five = GM_getValue(document.domain, 0);
- $( document).ready(function(){
- $(document).keydown(function(e) {
- if (e.ctrlKey && e.keyCode === 39) {
- $('video').get(0).currentTime = parseInt($('video').get(0).currentTime) + 80;
- }
- if (e.ctrlKey && e.keyCode === 37) {
- $('video').get(0).currentTime = parseInt($('video').get(0).currentTime) - 80;
- }
- if(five){
- if (e.keyCode === 39) {
- $('video').get(0).currentTime = parseInt($('video').get(0).currentTime) + 5;
- }
- if (e.keyCode === 37) {
- $('video').get(0).currentTime = parseInt($('video').get(0).currentTime) - 5;
- }
- }
- if (e.ctrlKey && e.keyCode === 53) {
- if(five){
- five = 0;
- }else{
- five = 1;
- }
- var message = "5 second skip "+ ((five) ? "activated" : "deactivated") +" for "+document.domain;
- try{
- GM_notification(message);
- }catch(e){
- alert(message);
- }
- GM_setValue(document.domain, five);
- }
- });
- });
- })();