Greasy Fork is available in English.
示例脚本:在所有网页上弹出提示“Hello World!”
当前为
// ==UserScript==
// @name Ngrok内网穿透Web检查页面美化
// @namespace Zuoxiao
// @version 0.5
// @description 示例脚本:在所有网页上弹出提示“Hello World!”
// @author Zuoxiao
// @include http://127.0.0.1:4040/*
// @require http://code.jquery.com/jquery-migrate-1.2.1.min.js
// @grant GM_addStyle
// ==/UserScript==
$("body").css("background",'#f1f1f1');
$(".navbar").css("box-shadow",'0 0 15px 2px rgba(0,0,0,.5)');
$(".brand").html('Ngrok专业控制台').css("color","#f89406");
$(".nav").remove();
$(".row>.span6").css("background",'#ffffff').css('padding','10px').css('box-sizing','border-box');
function fliter_image_respon(){
$(".txn-selector tr").each(function () {
var respons_txt = $(this).find(".wrapped .path").text();
if (confirmEnding(respons_txt, '.svg') ||confirmEnding(respons_txt, '.gif') ||confirmEnding(respons_txt, '.png')||confirmEnding(respons_txt, '.jpg')||confirmEnding(respons_txt, '.jpeg')||confirmEnding(respons_txt, '.ico')) {
$(this).remove();
}
})
}
setInterval(function (){
fliter_image_respon();
},100)
function confirmEnding(str, target) {
// 请把你的代码写在这里
var start = str.length - target.length;
var arr = str.substr(start, target.length);
if (arr == target) {
return true;
}
return false;
}