aboutsummaryrefslogtreecommitdiff
path: root/yomichan/userscript-loader.js
blob: 729b7603a816028e82e92b0f53ca98b25ce8c67e (plain)
1
2
3
4
5
6
7
8
9
10
(async () => {
	if (window.location.protocol != "chrome-extension:") return; // only run on yomichan pages
	if (window.location.pathname != "/search.html") return; // only run on search page
	eval((await yomichan.api.getSettings([{
		scope: "profile",
		optionsContext: { current: true },
		path: 'general.userScript'
	}]))[0].result);
})();