您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Discharge patients with just one click by skipping the modal pop-up!
// ==UserScript== // @name FV - Quick discharge // @description Discharge patients with just one click by skipping the modal pop-up! // @version 0.2 // @author msjanny (#7302) // @match https://www.furvilla.com/career/clinic/*/healed* // @namespace https://greasyfork.org/users/319295 // ==/UserScript== (function() { 'use strict'; /* globals $:false */ $(document).ready(function() { let token = $('meta[name=csrf-token]').prop('content'); let counter = $('h3 .label-success'); let count = parseInt(counter.text()); $('.patient-healthy-box .btn-danger').off(); $('.patient-healthy-box .btn-danger').each(function() { $(this).attr('href', '#discharged'); }); $('.patient-healthy-box .btn-danger').click(function() { $.post($(this).data('url'), {'_token': token}); $(this).text('Discharged!'); $(this).off(); $(this).parent().parent().parent().remove(); counter.text(--count); }); }); })();