Get GIF

try to take over the world!

当前为 2020-06-24 提交的版本,查看 最新版本

// ==UserScript==
// @name         Get GIF
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       NKL
// @include      https://www.gif-vif.com*/*
// @include      https://www.alucinoconfeisbuk.com*/*
// @include      https://media.giphy.com*/*
// @include      https://gif15.videosgifs.com*/*
// @include      https://videosgifs.com*/*
// @include      https://floobee.me/
// @include      https://tenor.com/
// @grant        none
// @require http://code.jquery.com/jquery-3.4.1.min.js

// ==/UserScript==

(function() {
    'use strict';

   var a = document.querySelector("meta[property='og:url']").getAttribute("content");

    //alert(a);

    $(document).keypress(function(event){
    var keycode = (event.keyCode ? event.keyCode : event.which);
    if(keycode == '13'){
        //alert('You pressed a "enter" key in somewhere');
        var txt;
        if (confirm("Bạn có chắc muốn tải file không?")) {
            txt = "You pressed OK!";
            //document.location.href = 'yourfile.exe';
           // a.href;
            window.open(a, 'Download');
            /*function downloadFile(filePath){
                var link=document.createElement('a');
                link.href = filePath;
                link.download = filePath.substr(filePath.lastIndexOf('/') + 1);
                link.click();
            }
            downloadFile(a);*/
        } else {
            txt = "You pressed Cancel!";
        }
        //document.getElementById("demo").innerHTML = txt;
    }
});
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址