Skip to content

Instantly share code, notes, and snippets.

"use strict";
function test() {
let arr = ["a", "b", "c", "d", "e", "f"];
let result = [];
while (arr.length) {
let i = Math.floor(Math.random() * (arr.length - 1));
result.push(arr.splice(i, 1)[0]);
}
return result;
@ThomasGreiner
ThomasGreiner / elemhide.htm
Last active October 9, 2015 15:39
Adblock Plus issues #3185 and #3186
<!DOCTYPE html>
<html>
<head>
<title>Element Hiding: Anonymous iFrame</title>
</head>
<body>
<p>
Top frame: [<span class="hide">This text should be hidden</span>]
</p>
git clone https://github.com/adblockplus/adblockpluschrome
cd adblockpluschrome
git clone https://github.com/adblockplus/adblockplus
git clone https://github.com/adblockplus/buildtools
git clone https://github.com/adblockplus/adblockplustests
cd buildtools
git clone https://github.com/adblockplus/jshydra
cd ..
# Build Chrome development environment (you can use either "chrome", "opera" or "safari")