Skip to content

Instantly share code, notes, and snippets.

View BR0kEN-'s full-sized avatar
⌨️
Coding... A lot.

Sergii Bondarenko BR0kEN-

⌨️
Coding... A lot.
View GitHub Profile
if (!document.querySelectorAll) {
document.querySelectorAll = function (selectors) {
var style = document.createElement('style'), elements = [], element;
document.documentElement.firstChild.appendChild(style);
document._qsa = [];
style.styleSheet.cssText = selectors + '{x-qsa:expression(document._qsa && document._qsa.push(this))}';
window.scrollBy(0, 0);
style.parentNode.removeChild(style);