mirror of
https://github.com/SimonBrazell/privacy-redirect
synced 2025-01-06 21:42:04 +01:00
left some unnecessary spaces here and there
This commit is contained in:
parent
cf7575f33b
commit
058ca7b6e0
@ -163,7 +163,6 @@ browser.storage.onChanged.addListener((changes) => {
|
||||
simplyTranslateInstance =
|
||||
changes.simplyTranslateInstance.newValue || simplyTranslateDefault;
|
||||
}
|
||||
|
||||
if ("wikipediaInstance" in changes) {
|
||||
wikipediaInstance =
|
||||
changes.wikipediaInstance.newValue || wikipediaDefault;
|
||||
@ -554,7 +553,6 @@ function redirectWikipedia(url, initiator) {
|
||||
link += "?mobileaction=toggle_view_mobile";
|
||||
else
|
||||
link += `?lang=${urlSplit[0]}`;
|
||||
|
||||
if (urlSplit[1] == 'm')
|
||||
link += "&mobileaction=toggle_view_mobile";
|
||||
//wikiless doesn't have mobile view support yet
|
||||
@ -569,14 +567,12 @@ browser.webRequest.onBeforeRequest.addListener(
|
||||
(details) => {
|
||||
const url = new URL(details.url);
|
||||
let initiator;
|
||||
|
||||
if (details.originUrl) {
|
||||
initiator = new URL(details.originUrl);
|
||||
} else if (details.initiator) {
|
||||
initiator = new URL(details.initiator);
|
||||
}
|
||||
let redirect;
|
||||
|
||||
if (youtubeDomains.includes(url.host)) {
|
||||
redirect = {
|
||||
redirectUrl: redirectYouTube(url, initiator, details.type),
|
||||
|
@ -268,7 +268,7 @@
|
||||
</div>
|
||||
</section>
|
||||
<section class="settings-block">
|
||||
<h1 data-localise="__MSG_simplyTranslateInstance__">SimplyTranslate Instance</h1>
|
||||
<h1 data-localise="__MSG_simplyTranslateInstance__">SimplyTranslate Instance</h1>
|
||||
<div class="autocomplete">
|
||||
<input
|
||||
id="simply-translate-instance"
|
||||
|
Loading…
Reference in New Issue
Block a user