Увага: Після публікування слід очистити кеш браузера, щоб побачити зміни.

  • Firefox / Safari: тримайте Shift, коли натискаєте Оновити, або натисніть Ctrl-F5 чи Ctrl-Shift-R (⌘-R на Apple Mac)
  • Google Chrome: натисніть Ctrl-Shift-R (⌘-Shift-R на Apple Mac)
  • Internet Explorer / Edge: тримайте Ctrl, коли натискаєте Оновити, або натисніть Ctrl-F5
  • Opera: натисніть Ctrl-F5
function extractWords() {
  // Get the current Wikipedia page
  var page = document.getElementById("mw-content-text").innerText;

  // Split the page into an array of words
  var words = page.split(" ");

  // Iterate through the array of words
  for (var i = 0; i < words.length; i++) {
    // Get the current word
    var word = words[i];

    // Check if the word is a link to a Wiktionary page
    if (word.startsWith("[[wikt:")) {
      // Extract the word from the link
      var wiktWord = word.substring(7, word.length - 2);

      // Add the word to the list of exported words
      exportedWords.push(wiktWord);
    }
  }

  // Log the list of exported words to the console
  console.log(exportedWords);
}