Forked from huntrax11/whooing-hide-fiugre.user.js
Last active
December 10, 2019 08:06
-
-
Save kimdwkimdw/5d895373bc0fa74b20c7ae74579a928b to your computer and use it in GitHub Desktop.
whooing-hide-fiugre.user.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name 후잉 hide figures | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description 후잉 숫자를 가려드립니다. | |
// @author Robert Park | |
// @match https://whooing.com/ | |
// @match https://new.whooing.com/ | |
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js | |
// @grant none | |
// ==/UserScript== | |
(function () { | |
'use strict'; | |
$(document).ready(function () { | |
setInterval(function () { | |
$('*').each(function (idx, elem) { | |
var text = $(elem).text(); | |
if (text.match(/^[ ]*[+-▲▼]?([0-9]{1,3}[,.]?)+[kmg%]?[ ]*$/i)) { | |
// console.log(text); | |
var target_number = text.replace(/[0-9]/g, '#'); | |
$(elem).text('#'.repeat(target_number.length/2)); | |
} | |
}); | |
}, 10); | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment