您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Hide the "This Flash game is currently not playable in your browser" message, and allow the game to play.
// ==UserScript== // @name Cool Math Flash Override // @namespace https://stevetech.me/ // @version 0.1 // @description Hide the "This Flash game is currently not playable in your browser" message, and allow the game to play. // @author Steve-Tech // @match https://www.coolmathgames.com/* // @grant none // @require https://code.jquery.com/jquery-3.6.0.slim.min.js#sha384=Qg00WFl9r0Xr6rUqNLv1ffTSSKEFFCDCKVyHZ+sVt8KuvG99nWw5RNvbhuKgif9z // ==/UserScript== $(document).ready(function() { //When document has loaded $('#newFlashDetectHtml').css("display", "none"); $('#swfgamewrapper').css("display", ""); renameElement($('iframe1'),'iframe'); }); // This function is from https://stackoverflow.com/a/56298261/12843844 function renameElement($element,newElement){ $element.wrap("<"+newElement+">"); $newElement = $element.parent(); //Copying Attributes $.each($element.prop('attributes'), function() { $newElement.attr(this.name,this.value); }); $element.contents().unwrap(); return $newElement; }