36 lines
832 B
HTML
36 lines
832 B
HTML
<!DOCTYPE html>
|
|
|
|
<script>
|
|
const url = "brave://settings"
|
|
function openBraveSettings() {
|
|
window.open(url);
|
|
}
|
|
|
|
function openBraveSettingsWithNoOpener() {
|
|
window.open(url, "", "noopener");
|
|
}
|
|
|
|
function replaceToBraveSettingsDirectly() {
|
|
window.location.replace(url);
|
|
}
|
|
|
|
function replaceToBraveSettingsIndirectly() {
|
|
w = window.open('https://brave.com');
|
|
setTimeout(()=>{w.location.replace(url)},1000)
|
|
}
|
|
|
|
function gotoBraveSettingsByMiddleClick() {
|
|
const middleClick = new MouseEvent( "click", { "button": 1 });
|
|
document.getElementById("gotoSettings").dispatchEvent(middleClick);
|
|
}
|
|
|
|
function gotoBraveSettingsByClick() {
|
|
document.getElementById("gotoSettings").click();
|
|
}
|
|
</script>
|
|
|
|
<body>
|
|
<a href="brave://settings" id="gotoSettings">goto brave://settings</a>
|
|
</body>
|
|
</html>
|