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

2022/11/02のページです。最新版はこちら。

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
// ==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.")
}