-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detect when AdBlock running and ask the user to disable it #57
Comments
What do you think about using the following solution for this? code via blog I'll need to do some testing that this approach still works with most adblockers. (function(){
var test = document.createElement('div');
test.innerHTML = ' ';
test.className = 'adsbox';
document.body.appendChild(test);
window.setTimeout(function() {
if (test.offsetHeight === 0) {
document.body.classList.add('adblock');
}
test.remove();
}, 100); I was thinking that somewhere in the navbar, What do you think about this approach? |
If it works, sounds good to me. Need to figure out how to display the message to the user without annoying him. :) But maybe a warning icon in the navbar that when clicked will explain that you he disable AdBlock. I only wonder if we should allow the user to dismiss the message without disabling adblock? And if we do, how to store this setting? |
Do you think a popup or other page is the right solution here? I don't know what the most consistent system would be here.
I was wondering this as well. If we did some kind of icon with a popup and allowed people to ignore it I think we'd need to save that either in cookies or profile db. |
Popup seemed right to me as you want to explain to the user what's the problem but not take too much screen real estate for it. Also thought about the fact that the user might fix/dismiss it on one browser but have it again in another. Considering that it's a non issue for most, how about we show a small message in the footer when we detect ad blocking:
And when you hover the ? it will show a bubble with explanation? |
Sounds good. |
Having trouble getting started with Vagrant on the Mac. Spent too much time there, will have to come back to this later. Let me know if there are updated docs somewhere. |
Sorry for the issues you had w/ the Vagrant box, I opened #1480 to track the work on the dev guide. |
@clarkbw The developer guide has been updated along with new documentation on how to use Docker for easy setup of your dev environment (instead of Vagrant). https://redash.io/help-onpremise/dev/guide.html Also, once Mozilla will have recent version of Redash deployed on s.t.m.o, you will be able to use it instead of running things locally: https://redash.io/help-onpremise/dev/remote-server.html (while only having frontend stuff run locally). |
getredash#57 I tried to make `JSON.stringify(this.visualization.options.columnMapping)` a variable to avoid repeating it, but if I make it a `let` the linter throws an error and if I make it a `const` then it doesn’t change with the UI and the logic doesn’t work. :(
getredash#57 I tried to make `JSON.stringify(this.visualization.options.columnMapping)` a variable to avoid repeating it, but if I make it a `let` the linter throws an error and if I make it a `const` then it doesn’t change with the UI and the logic doesn’t work. :(
getredash#57 I tried to make `JSON.stringify(this.visualization.options.columnMapping)` a variable to avoid repeating it, but if I make it a `let` the linter throws an error and if I make it a `const` then it doesn’t change with the UI and the logic doesn’t work. :(
I tried to make `JSON.stringify(this.visualization.options.columnMapping)` a variable to avoid repeating it, but if I make it a `let` the linter throws an error and if I make it a `const` then it doesn’t change with the UI and the logic doesn’t work. :( updated based on PR comments
I tried to make `JSON.stringify(this.visualization.options.columnMapping)` a variable to avoid repeating it, but if I make it a `let` the linter throws an error and if I make it a `const` then it doesn’t change with the UI and the logic doesn’t work. :( updated based on PR comments
I tried to make `JSON.stringify(this.visualization.options.columnMapping)` a variable to avoid repeating it, but if I make it a `let` the linter throws an error and if I make it a `const` then it doesn’t change with the UI and the logic doesn’t work. :( updated based on PR comments
I tried to make `JSON.stringify(this.visualization.options.columnMapping)` a variable to avoid repeating it, but if I make it a `let` the linter throws an error and if I make it a `const` then it doesn’t change with the UI and the logic doesn’t work. :( updated based on PR comments
I tried to make `JSON.stringify(this.visualization.options.columnMapping)` a variable to avoid repeating it, but if I make it a `let` the linter throws an error and if I make it a `const` then it doesn’t change with the UI and the logic doesn’t work. :( updated based on PR comments
I tried to make `JSON.stringify(this.visualization.options.columnMapping)` a variable to avoid repeating it, but if I make it a `let` the linter throws an error and if I make it a `const` then it doesn’t change with the UI and the logic doesn’t work. :( updated based on PR comments
I tried to make `JSON.stringify(this.visualization.options.columnMapping)` a variable to avoid repeating it, but if I make it a `let` the linter throws an error and if I make it a `const` then it doesn’t change with the UI and the logic doesn’t work. :( updated based on PR comments
I tried to make `JSON.stringify(this.visualization.options.columnMapping)` a variable to avoid repeating it, but if I make it a `let` the linter throws an error and if I make it a `const` then it doesn’t change with the UI and the logic doesn’t work. :( updated based on PR comments
Update boto3 and botocore dependencies
This issue is old, and almost certainly the world of Ad-blocking has evolved. Closing, but we can re-evaluate if any user starts a ticket with current examples of this problem. |
Yep, sounds like a decent plan. 😄 |
AdBlock has false alarms on some of the AJAX calls re:dash makes (for example when a dashboard slug begins with "advertising-"). We need to detect if AdBlock runs and show a warning to the user.
The text was updated successfully, but these errors were encountered: