אַכטונג: נאכן היטן, ברויכט איר אפשר נאך אויסקרויזן דעם בראוזער'ס זאַפאַס צו זען די ענדערונגען.

  • פייערפוקס/סאפארי: האלט אראפ שיפט בשעת'ן דרוקן Reload, אדער דרוקט Ctrl-F5 אדער Ctrl-R (אויף א מאקינטאש ⌘-R)
  • גוגל כראם: דרוקט Ctrl-Shift-R (אויף א מאקינטאש ⌘-Shift-R)
  • אינטערנעט עקספלארער: האלט אראפ Ctrl בשעת'ן קליקן Refresh, אדער דרוקט Ctrl-F5
  • אפערע: גייט צו מעניו → שטעלונגען ( אפערע → פרעפערנצן אויף א מעק) און דערנאך צו פריוואטקייט & און זיכערהייט → רוימען בראוזער דאטא → בילדער און טעקעס אין זאפאס
// Function to convert Tanakh citations to Sefaria links
function convertTanakhCitations(wikitext) {
  // Regular expression to match the {{תנ"ך|Sefer|Chapter|Verse}} pattern
  const regex = /{{תנ"ך\|([^|]+)\|([^|]+)\|([^|]+)}}/g;
  return wikitext.replace(regex, function(match, sefer, chapter, verse) {
    // Construct the Sefaria URL
    const url = `https://www.sefaria.org/${sefer}.${chapter}.${verse}`;
    // Return the HTML link with Sefaria's logo
    return `<a href="${url}" target="_blank"><img src="https://www.sefaria.org/static/img/sefaria_logo.png" alt="Sefaria" style="vertical-align: middle; width: 20px; height: 20px;"/> ${sefer} ${chapter}:${verse}</a>`;
  });
}

// Example usage
const wikitext = 'Some text {{תנ"ך|Bamidbar|3|4}} more text.';
const convertedText = convertTanakhCitations(wikitext);
console.log(convertedText);