Adding search engine note for Opera users

pull/271/head
Kevin Payravi 2023-10-16 01:53:26 -04:00
parent 7c091198ca
commit dd711f4a9a
4 changed files with 22 additions and 0 deletions

View File

@ -278,6 +278,11 @@
turning the extension off and on via your browser's extension settings (chrome://extensions/),
and/or reinstalling the extension.
</span>
<span id="notificationBannerOpera">
Opera users: By default, Opera will block extensions from running on search engines.
Search engine access can be enabled per-extension by going to "chrome://extensions/"
and selecting the "Allow access to search page results" option under Indie Wiki Buddy.
</span>
</div>
</body>
<script type="text/javascript" src="popup.js"></script>

View File

@ -229,6 +229,12 @@ document.addEventListener('DOMContentLoaded', function () {
document.getElementById('notificationBannerBug').style.display = 'block';
}
// If running Opera, show note about search engine acces
if (navigator.userAgent.match(/OPR\//)) {
notificationBanner.style.display = 'block';
document.getElementById('notificationBannerOpera').style.display = 'block';
}
loadBreezeWikiOptions();
// Listener for settings page in new tab:

View File

@ -310,6 +310,11 @@
turning the extension off and on via your browser's extension settings (chrome://extensions/),
and/or reinstalling the extension.
</span>
<span id="notificationBannerOpera">
Opera users: By default, Opera will block extensions from running on search engines.
Search engine access can be enabled per-extension by going to "about:extensions"
and selecting the "Allow access to search page results" option under Indie Wiki Buddy.
</span>
<span id="notificationBannerReview">
Enjoying Indie Wiki Buddy? Please leave a review!
<br />

View File

@ -528,6 +528,12 @@ document.addEventListener('DOMContentLoaded', function () {
document.getElementById('notificationBannerBug').style.display = 'block';
}
// If running Opera, show note about search engine acces
if (navigator.userAgent.match(/OPR\//)) {
notificationBanner.style.display = 'block';
document.getElementById('notificationBannerOpera').style.display = 'block';
}
// Count number of times settings have been opened
// Purposefully using local storage instead of sync
chrome.storage.local.get({ 'countSettingsOpened': 0 }, function (item) {