D
D
dollar2018-09-06 18:10:00
css
dollar, 2018-09-06 18:10:00

How to bypass anti-adblock on stackoverflow.com?

Here's what it shows:
5b914221dc395566349804.png
If you disable uBlock Origin, then everything is fine.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
A
AngReload, 2018-09-06
@dollar

Go to uBlock Origin Settings > My Filters, and add the following line:
Then click "Save Changes".
Is this site suspicious, does it only translate stackoverflow?

A
Anton Anton, 2018-09-06
@Fragster

Use stackoverflow.com instead of this crooked auto-translated site.
Well, or, on the knee, I threw a userscript that puts the styles in order:

if (document.readyState === "loading") {
  document.addEventListener("DOMContentLoaded", makeOk);
} else { 
  makeOk();
}

function makeOk() {
  setTimeout(
  function() {
    let elementList  = Array.from(document.getElementsByClassName('desc'));
    elementList .forEach(element => {
      element.attributes.style = "";
    });
    let elementList2  = Array.from(document.querySelectorAll('div.answer-row > div'));
    elementList2 .forEach(element => {
        element.className = "";
    });
  }, 500);
}

A
Alexander Talalaev, 2018-09-06
@neuotq

As a workaround, you can write in the developer console (Ctrl - Shift - J in chrome) in the browser: This will remove the class they add in order to flip the view of all elements.

A
Alexey Nikolaev, 2018-09-06
@Heian

disable uBlock Origin

P
profesor08, 2018-09-06
@profesor08

The best solution is to block the issuance of this site, at least for yourself, it is possible. You can use the script and continue to use blockers.

setTimeout(function() {
        let div = document.querySelectorAll(".answer-row");
        for(let i = 0; i < div.length; i++) {
            div[i].firstElementChild.setAttribute("class", "");
            div[i].firstElementChild.setAttribute("style", "");
        }
    }, 500);

You can also use the requestly extension to redirect the script that the blocker detects to its host with the correct code.

G
gromsam, 2018-10-13
@gromsam

Yes, one of the sites is just with an incredible amount of advertising. Anyway.
For chrome, install the User JavaScript and CSS application or similar, in which you can write your own scripts or css. In the JS column I wrote:

window.onload = function(){
      	var elts = document.getElementsByClassName("answer-row");
        for(var e = 0; e < elts.length; e++) {
            var elt = elts[e].childNodes[1];
            elt.style.setProperty('transform', 'scale(1, 1)', 'important');
            elt.style.setProperty('direction', 'ltr', 'important');
        }    
    }

or as Alexander Talalaev wrote, you just need to wait for the window to finish loading
window.onload = function(){
        $('.desc').parent().removeClass();
    }

The red banner now only looks the other way! Gee))!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question