From 6b0022c46f21df140a7ec7b3a37c0c8f6c5bbeb1 Mon Sep 17 00:00:00 2001 From: Libor Polčák Date: Jun 03 2020 08:12:32 +0000 Subject: borrowed.js: Refactored to highlight what code is borrowed from EFF PB --- diff --git a/common/borrowed.js b/common/borrowed.js index 11061ef..5219ad5 100644 --- a/common/borrowed.js +++ b/common/borrowed.js @@ -20,8 +20,11 @@ // -/* - * The following code was originaly part of Privacy Badger +/** + * Execute given script in the page's JavaScript context. + * + * This function was originaly a part of + * Privacy Badger * https://github.com/EFForg/privacybadger/blob/master/src/js/utils.js * Copyright (C) 2014 Electronic Frontier Foundation * @@ -32,20 +35,6 @@ * it under the terms of the GNU General Public License version 3 as * published by the Free Software Foundation. * - * Privacy Badger is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Privacy Badger. If not, see . - */ - -/** - * Executes a script in the page's JavaScript context. - * - * This code is copied from EFF PrivacyBadger under GPL3. - * * @param {String} text The content of the script to insert. * @param {Object} data Data attributes to set on the inserted script tag. */