Greasy Fork

Greasy Fork is available in English.

Flash 小游戏下载

支持 4399、7K7K、17yy 等平台 Flash 小游戏下载,注:该脚本不支持 H5 小游戏下载,有好的建议,或者遇到问题,欢迎留言反馈。

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        Flash 小游戏下载
// @namespace   https://jueding.top
// @match       http://www.4399.com/flash/*_*.htm
// @match       http://www.7k7k.com/swf/*.htm
// @match       http://www.17yy.com/f/play/*.html
// @grant       none
// @version     1.0
// @author      Felix
// @description 支持 4399、7K7K、17yy 等平台 Flash 小游戏下载,注:该脚本不支持 H5 小游戏下载,有好的建议,或者遇到问题,欢迎留言反馈。
// ==/UserScript==

(function() {
    'use strict';
    
    var down = document.createElement('a');
    down.id = "down";
    down.style = "font-size: 14px; font-weight: 400; text-decoration: underline; padding-left: 20px;";
    down.text = "文件下载(右键另存为)";
    
    if (location.host == "www.4399.com") {
        down.href = window.webServer + window._strGamePath;
        if (down.href.endsWith(".swf")) {
            document.querySelector(".p-nav h1").append(down);
        }
    }
  
    if (location.host == "www.7k7k.com") {
        down.href = document.querySelector("#gameobj").src;
        down.style.float = "right";
        if (down.href.endsWith(".swf")) {
            document.querySelector(".play_header").append(down);
        }
        
    }
  
    if (location.host == "www.17yy.com") {
        down.href = document.querySelector("#flashgame").src;
        down.style.color = "#e8e8e8";
        if (down.href.endsWith(".swf")) {
            document.querySelector(".gm_name").append(down);
        }
    }
  
})();