Skip to content

Instantly share code, notes, and snippets.

@willnet
Last active August 15, 2025 02:56
Show Gist options
  • Save willnet/a1def22d1946de09d0d957528eca230c to your computer and use it in GitHub Desktop.
Save willnet/a1def22d1946de09d0d957528eca230c to your computer and use it in GitHub Desktop.

Revisions

  1. willnet revised this gist Nov 28, 2024. 2 changed files with 12 additions and 1 deletion.
    2 changes: 1 addition & 1 deletion sample_from_atendees.js
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    // chromeを利用して、ユーザ一覧を表示しつつconsoleで↓を実行すると、現在の参加者からランダムで一人表示することができます

    const names_array = document.querySelector("[aria-label='参加者']").innerText.split("\n").filter((word)=> !word.match(/\(||||||keep_off|more_vert|keep|domain_disabled/))
    const names_array = document.querySelector("[aria-label='参加者']").innerText.split("\n").filter((word)=> !word.match(/\(||||||keep_off|more_vert|keep|domain_disabled/))
    const names_set = new Set(names_array)
    const names_uniq_array = Array.from(names_set)
    names_uniq_array[Math.floor(Math.random() * names_uniq_array.length)]
    11 changes: 11 additions & 0 deletions shuffle_from_attendees.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    // chromeを利用して、ユーザ一覧を表示しつつconsoleで↓を実行すると、現在の参加者をシャッフルして表示できます

    const names_array = document.querySelector("[aria-label='参加者']").innerText.split("\n").filter((word)=> !word.match(/\(||||||keep_off|more_vert|keep|domain_disabled/))
    const names_set = new Set(names_array)
    const array = Array.from(names_set)

    for (let i = array.length - 1; i > 0; i--) {
    const j = Math.floor(Math.random() * (i + 1));
    [array[i], array[j]] = [array[j], array[i]];
    }
    array
  2. willnet revised this gist Jul 3, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion sample_from_atendees.js
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    // chromeを利用して、ユーザ一覧を表示しつつconsoleで↓を実行すると、現在の参加者からランダムで一人表示することができます

    const names_array = document.querySelector("[aria-label='参加者']").innerText.split("\n").filter((word)=> !word.match(/\(||||||keep_off|more_vert|keep_pin|keep_pin_outline|domain_disabled/))
    const names_array = document.querySelector("[aria-label='参加者']").innerText.split("\n").filter((word)=> !word.match(/\(||||||keep_off|more_vert|keep|domain_disabled/))
    const names_set = new Set(names_array)
    const names_uniq_array = Array.from(names_set)
    names_uniq_array[Math.floor(Math.random() * names_uniq_array.length)]
  3. willnet revised this gist Aug 2, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion sample_from_atendees.js
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    // chromeを利用して、ユーザ一覧を表示しつつconsoleで↓を実行すると、現在の参加者からランダムで一人表示することができます

    const names_array = document.querySelector("[aria-label='参加者']").innerText.split("\n").filter((word)=> !word.match(/\(||||||keep_off|more_vert|keep_pin_outline|domain_disabled/))
    const names_array = document.querySelector("[aria-label='参加者']").innerText.split("\n").filter((word)=> !word.match(/\(||||||keep_off|more_vert|keep_pin|keep_pin_outline|domain_disabled/))
    const names_set = new Set(names_array)
    const names_uniq_array = Array.from(names_set)
    names_uniq_array[Math.floor(Math.random() * names_uniq_array.length)]
  4. willnet revised this gist Jul 13, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion sample_from_atendees.js
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    // chromeを利用して、ユーザ一覧を表示しつつconsoleで↓を実行すると、現在の参加者からランダムで一人表示することができます

    const names_array = document.querySelector("[aria-label='参加者']").innerText.split("\n").filter((word)=> !word.match(/\(||||||keep_off|more_vert|keep_pin_outline/))
    const names_array = document.querySelector("[aria-label='参加者']").innerText.split("\n").filter((word)=> !word.match(/\(||||||keep_off|more_vert|keep_pin_outline|domain_disabled/))
    const names_set = new Set(names_array)
    const names_uniq_array = Array.from(names_set)
    names_uniq_array[Math.floor(Math.random() * names_uniq_array.length)]
  5. willnet revised this gist Aug 23, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion sample_from_atendees.js
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    // chromeを利用して、ユーザ一覧を表示しつつconsoleで↓を実行すると、現在の参加者からランダムで一人表示することができます

    const names_array = document.querySelector("[aria-label='参加者']").innerText.split("\n").filter((word)=> !word.match(/\(||||||keep_off|more_vert/))
    const names_array = document.querySelector("[aria-label='参加者']").innerText.split("\n").filter((word)=> !word.match(/\(||||||keep_off|more_vert|keep_pin_outline/))
    const names_set = new Set(names_array)
    const names_uniq_array = Array.from(names_set)
    names_uniq_array[Math.floor(Math.random() * names_uniq_array.length)]
  6. willnet revised this gist Jun 15, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion sample_from_atendees.js
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    // chromeを利用して、ユーザ一覧を表示しつつconsoleで↓を実行すると、現在の参加者からランダムで一人表示することができます

    const names_array = document.querySelector("[aria-label='参加者']").innerText.split("\n").filter((word)=> !word.match(/\(|||||keep_off|more_vert/))
    const names_array = document.querySelector("[aria-label='参加者']").innerText.split("\n").filter((word)=> !word.match(/\(||||||keep_off|more_vert/))
    const names_set = new Set(names_array)
    const names_uniq_array = Array.from(names_set)
    names_uniq_array[Math.floor(Math.random() * names_uniq_array.length)]
  7. willnet revised this gist Jun 1, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion sample_from_atendees.js
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    // chromeを利用して、ユーザ一覧を表示しつつconsoleで↓を実行すると、現在の参加者からランダムで一人表示することができます

    const names_array = document.querySelector("[aria-label='参加者']").innerText.split("\n").filter((word)=> !word.match(/\(|||||keep_off/))
    const names_array = document.querySelector("[aria-label='参加者']").innerText.split("\n").filter((word)=> !word.match(/\(|||||keep_off|more_vert/))
    const names_set = new Set(names_array)
    const names_uniq_array = Array.from(names_set)
    names_uniq_array[Math.floor(Math.random() * names_uniq_array.length)]
  8. willnet created this gist Apr 6, 2022.
    6 changes: 6 additions & 0 deletions sample_from_atendees.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    // chromeを利用して、ユーザ一覧を表示しつつconsoleで↓を実行すると、現在の参加者からランダムで一人表示することができます

    const names_array = document.querySelector("[aria-label='参加者']").innerText.split("\n").filter((word)=> !word.match(/\(|||||keep_off/))
    const names_set = new Set(names_array)
    const names_uniq_array = Array.from(names_set)
    names_uniq_array[Math.floor(Math.random() * names_uniq_array.length)]