GreasyFork markdown

Формат по умолчанию, используемый на форуме:Markdown,Добавьте ссылку на справку по формату и опубликуйте новый скрипт.,Панель инструментов времени ответа с включенным быстрым редактированием

< Обсуждения: GreasyFork markdown

Вопрос или комментарий

Internationalization but yet I see Chinese in the toolbar.

Internationalization but yet I see Chinese in the toolbar.

Few people use it, I just use it to meet my needs, so some texts are not translated

§
Создано: 07.09.2025
Изменено: 07.09.2025

You Can manualy Edit the script to translat the tool bar:
// TRANSLATED ENGLISH
// Add buttons
btnMake(n, '' + __('B') + '', __('Bold'), '**')
btnMake(n, __('#'), __('Title'), '#', ' ')
btnMake(n, '

  • ' + __('-') + '
  • ', __('List'), '- ', ' ')
    btnMake(n, __('>'), __('blockquote'), '

    ', '

    ')
    btnMake(n, '' + __('mark') + '', __('Mettre en évidence'), '', '')
    btnMake(n, '' + __('I') + '', __('Italic'), '*')
    btnMake(n, '

    ' + __('center') + '

    ', __('Contenu est centré'), '

    ', '

    ')
    btnMake(n, '' + __('U') + '', __('Underline'), '', '')
    btnMake(n, '' + __('S') + '', __('Strikethrough'), '', '')
    btnMake(n, '<br>', __('Force line break'), '
    ', '', true)
    btnMake(n, __('---'), __('Horizontal line'), '\n\n---\n\n', '', true)
    btnMake(n, __('URL'), __('Add URL to selected text'),



    // TRANSLATED ENGLISH
    const WeiWeiimages = [
    ['npzhyrb4txdoegwl82bkapekufb5', 'Weiwei a demandé : Avez-vous une vision ?'],
    ['gkhj9p2qhtm62uza3qveshtooe2u', 'Vivi a été époustouflée par toi ! '],
    ['P0I0F5XUBHLN1WVPH3IP70ZHPZQQ', 'Weiwei a demandé : Qu'est-ce que cela signifie de se tirer une balle dans le pied ?'],
    ['nahzae6vc3d3osq861cbt8uaopkk', 'Vivi affirme : C'est une blague internationale'],
    ['kzpmox79idq4gmsbyoj0yyuhx13v', 'Weiwei a demandé : Comment osez-vous dire une telle chose ?' ']
    ]
    const WeiWeiLoveYou = WeiWei(WeiWeiimages, true)
    btnMake(n, "WeiWei's mockery", "Five questions from patriotic professor Wei Wei Wei", __('\n\n'+ WeiWeiLoveYou + `\n\n



    // TRANSLATED ENGLISH (Google Translate Not Work)
    g = btnMake(n, __('Google Translate'), __('Quickly translate the selected content'),
    function (e) {
    const translatedzh = edInit(e.target)
    translateText(translatedzh.sel).then(translatedText => {

    edWrapInTag('', translatedText, translatedzh, true)
    }).catch(error => {
    alert(' GoogleTranslate ERROR!!! ')
    })

    §
    Создано: 07.09.2025
    Изменено: 07.09.2025

    Problems:
    Google Translate Not Work
    The WeiWei's mockery too

    Sorrrry the The WeiWei's mockery work

    爱国教授维维有话对你说






    Weiwei a demandé : Avez-vous une vision ?



    Vivi a été époustouflée par toi !



    Weiwei a demandé : Qu'est-ce que cela signifie de se tirer une balle dans le pied ?



    Vivi affirme : C'est une blague internationale



    Weiwei a demandé : Comment osez-vous dire une telle chose ?'

    Problems:Google Translate Not WorkThe WeiWei's mockery too

    You must select the text you want to translate and click the button to translate. 👌

    §
    Создано: 07.09.2025
    Изменено: 07.09.2025
    You must select the text you want to translate and click the button to translate

    For me, it don’t work...

    You must select the text you want to translate and click the button to translate For me, it don’t work...

    I don’t know what's going on on your computer, but it does work with me

    I don’t know what’s going on on your computer, but it does work with me
    Me too :-)

    I trying with a fresh install on another profile.
    Trying with ViolentMonkey.
    No luck...

    Maybe i select the wrong option in the script autorisation page of tampermonkey (this which open on the first use of the script).

    In another hand i never use this option:
    i have an other addon for that..
    :-)

    Ответить

    Войдите, чтобы ответить.