Chrome
Safari
Edge
Firefox
Chrome (Android)
Tap the lock icon next to the address bar. Tap Permissions → Notifications . Adjust your preference.
Chrome (Desktop)
Click the padlock icon in the address bar. Select Site settings . Find Notifications and adjust your preference.
Safari (iOS 16.4+)
Ensure the site is installed via Add to Home Screen . Open Settings App → Notifications . Find your app name and adjust your preference.
Safari (macOS)
Go to Safari → Preferences . Click the Websites tab. Select Notifications in the sidebar. Find this website and adjust your preference.
Edge (Android)
Tap the lock icon next to the address bar. Tap Permissions .
Find Notifications and adjust your preference.
Edge (Desktop)
Click the padlock icon in the address bar. Click Permissions for this site . Find Notifications and adjust your preference.
Firefox (Android)
Go to Settings → Site permissions . Tap Notifications . Find this site in the list and adjust your preference.
Firefox (Desktop)
Open Firefox Settings. Search for Notifications . Find this site in the list and adjust your preference.
Пожалуйста, помогите добавить функцию, для моего bb кода . Есть функция в которой я посмотрел реализацию всплывающего окна, при использовании bb кода в визуальном редакторе. Мне нужно переделать эту функцию под мой код. Ниже сама функция. Не понятные которые части функции, их я отметил комментарием. В моем случае юзеры будут вставлять часть ссылки после "=" с youtube, например aF_GwG4v-sw .
this.___IPB_FUNCTIONS = function() {}; this.createlink = function(e) { var _text = this.get_selection(); // _text = _text.replace(/\n|\r|<br \/>/g, ''); // if (_text.match(/(<a href|\[url)/ig)) { this.format_text(e, "unlink", false); } else { var _url = prompt(ipb_global_lang['editor_enter_youtube'], ''); if (!_url || _url == null || _url == '') { return false; } _text = _text ? _text : prompt(ipb_global_lang[ 'editor_enter_title'], ipb_global_lang[ 'visit_my_website']); if (!_text || _text == null) { return false; } this.wrap_tags('url', _url, _text); } };