Discuz6.0 - remove one of the hide option

So I came across with this problem before I went to bed. I took 20 minute trying to help this member help.
Eventually the modification worked out.
Here is the thread
能否去掉 隱藏按鍵 積分文字去除問題

Hmm. so initially I went to include/javascript/editor.js and removed this line

Find

1
                str += cmd == 'hide' ? '<input type="radio" name="' + ctrlid + '_radio" id="' + ctrlid + '_radio_1" checked="checked"/>只有當瀏覽者回復本帖時才顯示<br /><input type="radio" name="' + ctrlid + '_radio" id="' + ctrlid + '_radio_2"/>只有當瀏覽者積分高於 <input type="text" size="3" id="' + ctrlid + '_param_2"/> 時才顯示' : '';

Replaced with

1
                str += cmd == 'hide' ? '<input type="radio" name="' + ctrlid + '_radio" id="' + ctrlid + '_radio_1" checked="checked"/>只有當瀏覽者回復本帖時才顯示' : '';

It didn't work out at all. The member reported it and said he couldn't insert the hide tag anymore. I checked the source and thought I was missing something there.
The first attempt was to not to remove the 2nd input value. Just leave it there. So only the button remained, but it looked ugly.

I wanted to remove the 2nd input completely from this js source code. I thought this would be a robust modification. Now, I checked the source carefully. I realized this hide tag, has two sections:
[1] the first section is what I modify. It is the input make-up, has little to do with the actual insertion.
[2] the code below it is a function. It controls how the tag will be insert.

So i am on the right path......

(more...)