Skip to content

Instantly share code, notes, and snippets.

@kimdwkimdw
Forked from huntrax11/whooing-hide-fiugre.user.js
Last active December 10, 2019 08:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kimdwkimdw/5d895373bc0fa74b20c7ae74579a928b to your computer and use it in GitHub Desktop.
Save kimdwkimdw/5d895373bc0fa74b20c7ae74579a928b to your computer and use it in GitHub Desktop.
whooing-hide-fiugre.user.js
// ==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