User:Allahverdi Verdizade/common.js

//

importScript('User:Visviva/pretext.js'); // importScript('User:ZBroz/Tbot.js'); // addOnloadHook(function { Tbot.greenifyTranslinks('cs'); Tbot.greenifyTranslinks('sk'); });

// importScript("User:Erutuon/scripts/listSwitcher.js")

function insertTags(preTags, periTags, postTags) { $( '#wpTextbox1' ).textSelection( 'encapsulateSelection', {     pre: preTags,      peri: periTags,      post: postTags    }  ); }

function expandShortcuts { content=document.editform.wpTextbox1.value; frBase = '===Further reading===\n* '

furtherReadingAz= frBase + ''; furtherReadingKum= frBase + ''; furtherReadingCs = frBase + '\n* '; furtherReadingSk = frBase + ''; furtherReadingBn = frBase + '\n* '; furtherReadingCa = frBase + ''; furtherReadingDa = frBase + ''; furtherReadingDe = frBase + ''; furtherReadingEl = frBase + ''; furtherReadingEn = frBase + ''; furtherReadingEs = frBase + ''; furtherReadingEt = frBase + ''; furtherReadingEu = frBase + ''; furtherReadingFi = frBase + ''; furtherReadingFr = frBase + ''; furtherReadingHu = frBase + '\n* '; furtherReadingGa = frBase + ''; furtherReadingGrc= frBase + ''; furtherReadingIs = frBase + ''; furtherReadingIt = frBase + ''; furtherReadingLv = frBase + ''; furtherReadingLt = frBase + ''; furtherReadingMg = frBase + ''; furtherReadingNl = frBase + ''; furtherReadingPl = frBase + ''; furtherReadingBg = frBase + ''; furtherReadingBe = frBase + ''; furtherReadingPt = frBase + ''; furtherReadingRo = frBase + ''; furtherReadingRu = frBase + ''; furtherReadingSh = frBase + ''; furtherReadingSl = frBase + ''; furtherReadingSq = frBase + ''; furtherReadingTa = frBase + ''; furtherReadingTr = frBase + ''; furtherReadingUk = frBase + ''; content=content .replace(/_-->_/g, '→') .replace(/_af_/g, '===Alternative forms===') .replace(/_e_/g, '===Etymology===\nFrom – .') .replace(/_p_/g, '===Pronunciation===\n*') .replace(/_pcs_/g, '===Pronunciation===\n* \n* ') .replace(/_sa_/g, 'See also') .replace(/_inf_/g, '') .replace(/_dt_/g, '====Derived terms====\n* ') .replace(/_desc_/g, '====Descendants====\n* ') .replace(/_ux_/g, '#: \n') .replace(/_qw_/g, '#* \n') .replace(/_rt_/g, '===Related terms===') .replace(/_fr_/g, '===Further reading===') .replace(/_frcs_/g, furtherReadingCs) .replace(/_frsk_/g, furtherReadingSk )

.replace(/_ä_/g, 'ə') .replace(/_c_/g, 'ç') .replace(/_s_/g, 'ş') .replace(/_i_/g, 'ı') .replace(/_g_/g, 'ğ')

.replace(/_oguz_/g, '* Oghuz:\n** :\n*** \n*** https://www.osmanlicasozlukler.com/\n****http://sozluk.gagauz.in/\n**** \n** http://www.ajapsozluk.com/')

.replace(/_ncs_/g, '==Czech==\n\n===Noun===\n\n\n# _\n\n' + furtherReadingCs) .replace(/_ncspn_/g, '==Czech==\n\n===Proper noun===\n\n\n# _\n\n' + furtherReadingCs) .replace(/_ncsa_/g, '==Czech==\n\n===Adjective===\n\n\n# _\n\n' + furtherReadingCs) .replace(/_ncsv_/g, '==Czech==\n\n===Verb===\n\n\n# _\n\n' + furtherReadingCs) .replace(/_ncsadv_/g, '==Czech==\n\n===Adverb===\n\n\n# _\n\n' + furtherReadingCs) .replace(/_ncss_/g, '==Czech==\n\n===Suffix===\n\n\n# _\n\n' + furtherReadingCs) .replace(/_ncsp_/g, '==Czech==\n\n===Prefix===\n\n\n# _\n\n' + furtherReadingCs)

.replace(/_naz_/g, '==Azerbaijani==\n\n===Etymology===\nFrom – .\n\n===Noun===\n\n\n# _\n\n====Declension====\n\n\n' + furtherReadingAz) .replace(/_vaz_/g, '==Azerbaijani==\n\n===Etymology===\nFrom – .\n\n===Verb===\n \n\n# to _\n\n====Conjugation====\n\n\n====Derived terms====\n* \n\n' + furtherReadingAz) .replace(/_pas_/g, '==Azerbaijani==\n\n===Etymology===\nFrom .\n\n===Verb===\n \n\n# \n\n====Conjugation====\n\n\n' + furtherReadingAz) .replace(/_aaz_/g, '==Azerbaijani==\n\n===Etymology===\nFrom – .\n\n===Adjective===\n\n\n# _\n\n' + furtherReadingAz) .replace(/_avaz_/g, '==Azerbaijani==\n\n===Etymology===\nFrom – .\n\n===Adverb===\n\n\n# _\n\n' + furtherReadingAz)

.replace(/_nsk_/g, '==Slovak==\n\n===Noun===\n\n\n# _\n\n' + furtherReadingSk) .replace(/_nskpn_/g, '==Slovak==\n\n===Proper noun===\n\n\n# _\n\n' + furtherReadingSk) .replace(/_nska_/g, '==Slovak==\n\n===Adjective===\n\n\n# _\n\n' + furtherReadingSk) .replace(/_nskv_/g, '==Slovak==\n\n===Verb===\n\n\n# _\n\n' + furtherReadingSk)

.replace(/_ntr_/g, '==Turkish==\n\n===Noun===\n\n\n# _\n\n' + furtherReadingTr) .replace(/_nkum_/g, '==Kumyk==\n\n===Noun===\n\n\n# _\n\n====Declension====\n\n\n' + furtherReadingKum) .replace(/_vkum_/g, '==Kumyk==\n\n===Verb===\n\n\n# to _\n\n' + furtherReadingKum) .replace(/_akum_/g, '==Kumyk==\n\n===Adjective===\n\n\n# _\n\n' + furtherReadingKum) .replace(/_avkum_/g, '==Kumyk==\n\n===Adverb===\n\n\n# _\n\n' + furtherReadingKum) .replace(/_zkh_/g, '==Khorezmian Turkic==\n\n===Verb===\n \n\n# to \n\n===References===\n* ')

.replace(/_ndlg_/g, '==Dolgan==\n\n===Noun===\n\n\n# _\n\n') .replace(/_vdlg_/g, '==Dolgan==\n\n===Verb===\n\n\n# to _\n\n') .replace(/_adlg_/g, '==Dolgan==\n\n===Adjective===\n\n\n# _\n\n') .replace(/_avdlg_/g, '==Dolgan==\n\n===Adverb===\n\n\n# _\n\n')

.replace(/_ntly_/g, '==Talysh==\n\n===Noun===\n\n\n# _\n\n') .replace(/_vtly_/g, '==Talysh==\n\n===Verb===\n\n\n# to _\n\n') .replace(/_atly_/g, '==Talysh==\n\n===Adjective===\n\n\n# _\n\n') .replace(/_tsyn_/g, '#: ')

.replace(/_ntt_/g, '==Tatar==\n\n\n===Noun===\n\n\n# _\n\n') .replace(/_vtt_/g, '==Tatar==\n\n\n===Verb===\n\n\n# _\n\n') .replace(/_att_/g, '==Tatar==\n\n\n===Adjective===\n\n\n# _\n\n') .replace(/_nutt_/g, '==Tatar==\n\n\n===Numeral===\n\n\n# _\n\n') .replace(/_ptt_/g, '==Tatar==\n\n\n===Pronoun===\n\n\n# _\n\n') .replace(/_ttv_/g, '')

.replace(/_;:_/g, '===Pronunciation===\n* \n* \n* ')

.replace(/_tr_/g, '====Translations====\n\n\n') .replace(/_eický_/g, '===Etymology===\n + ') ; document.editform.wpTextbox1.value=content; }

function addKeyListener { document.addEventListener("keydown", function(evt) {   qCode = 81;    f8Code = 119;    // if (evt.ctrlKey && evt.keyCode === qCode) {    if (evt.keyCode === f8Code) {      expandShortcuts;      evt.preventDefault;    }  }); }

$( addKeyListener ); /* equivalent to addOnloadHook */

importScript("User:Ungoliant MMDCCLXIV/synshide.js");

//