Fix source dropdown menu

When loading a previously visited page, the website won't display the selected media source. You need to select another source and then reselect the source you wanted, in order for it to show the media. This user script fixes that bug

2023-06-22 기준 버전입니다. 최신 버전을 확인하세요.

// ==UserScript==
// @name        Fix source dropdown menu
// @namespace   kawa.tf
// @match       *://*.japaneseasmr.com/*
// @grant       none
// @version     1.0.1
// @author      Tilwa Qendov
// @description When loading a previously visited page, the website won't display the selected media source. You need to select another source and then reselect the source you wanted, in order for it to show the media. This user script fixes that bug
// @license Artistic-2.0
// ==/UserScript==

let dropdown = document.getElementById('selectSource')
if (dropdown !== null) {
  dropdown.dispatchEvent(new Event('change'))
  console.log("fix-dropdown-menu: Sent an update to the selectSource dropdown menu.")
}