# Disabling the Confirm Action Message on Ustyuzhna.com
I understand you want to remove the Adobe Flash Player confirmation message from your website. Since Flash is now obsolete and blocked by modern browsers, this message serves no purpose and only confuses visitors.
Here's a solution to suppress this message:
## JavaScript Solution
Add this code to your website, preferably in the `<head>` section or before the closing `</body>` tag:
```html
<script>
// Disable Flash-related confirmation messages
(function() {
// Override confirm() function to block Flash-related messages
var originalConfirm = window.confirm;
window.confirm = function(message) {
// Check if message contains Flash-related text
if (typeof message === 'string' &&
(message.includes('Adobe Flash Player') ||
message.includes('YouTube Player requires Adobe Flash') ||
message.includes('Confirm your actions'))) {
console.log('Blocked Flash confirmation:', message);
return true; // Automatically confirm without showing dialog
}
// For all other confirm dialogs, use original behavior
return originalConfirm.apply(this, arguments);
};
// Additional protection: Remove Flash-related elements if they exist
setTimeout(function() {
// Remove any Flash objects/embeds that might trigger the message
var flashElements = document.querySelectorAll('object[type="application/x-shockwave-flash"], embed[type="application/x-shockwave-flash"]');
flashElements.forEach(function(el) {
el.parentNode.removeChild(el);
});
}, 100);
})();
</script>
```
## Alternative: HTML Meta Tag Approach
You can also try adding this meta tag to your `<head>` section:
```html
<meta http-equiv="Content-Security-Policy" content="object-src 'none';">
```
## Where to Add This Code
1. **If you have access to the HTML files:**
- Open your main HTML file (usually `index.html`)
- Add the JavaScript code above just before the closing `</body>` tag
2. **If you're using a CMS:**
- Look for theme settings or custom code sections
- Add the JavaScript to the header or footer code injection area
3. **If you can only edit via a plugin:**
- Use a custom code plugin (like "Header and Footer Scripts")
- Add the JavaScript to the site-wide footer section
## Additional Recommendations
Since Flash is no longer supported, you should also:
1. Replace any Flash content with modern HTML5 alternatives
2. Update any old YouTube embed codes to use the current iframe method
3. Check for and remove any obsolete Flash-related scripts
The JavaScript solution above should immediately suppress the confirmation message while preserving other legitimate confirmation dialogs on your site.
Regards
High Yield Cd Calculator