speedreader: Add license headers

Document each file as MPL 2.0-licensed, per code policy.
Addresses an `npm run presubmit` warning.
This commit is contained in:
Ralph Giles
2024-01-25 11:43:38 -08:00
parent 31a1ba44f5
commit b7b3517594
7 changed files with 35 additions and 0 deletions
@@ -1,3 +1,8 @@
// Copyright (c) 2021 The Brave Authors. All rights reserved.
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at https://mozilla.org/MPL/2.0/.
#[macro_use]
extern crate html5ever;
extern crate kuchikiki;
@@ -1,3 +1,8 @@
// Copyright (c) 2021 The Brave Authors. All rights reserved.
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at https://mozilla.org/MPL/2.0/.
use regex::{Regex, RegexSet};
use std::cmp::max;
use std::collections::HashSet;
@@ -1,3 +1,8 @@
// Copyright (c) 2021 The Brave Authors. All rights reserved.
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at https://mozilla.org/MPL/2.0/.
use crate::{dom, util};
use html5ever::tendril::StrTendril;
use html5ever::tree_builder::TreeSink;
@@ -1,3 +1,8 @@
// Copyright (c) 2021 The Brave Authors. All rights reserved.
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at https://mozilla.org/MPL/2.0/.
use crate::{dom, util};
use kuchikiki::iter::NodeIterator;
use kuchikiki::NodeRef as Handle;
@@ -1,3 +1,8 @@
// Copyright (c) 2021 The Brave Authors. All rights reserved.
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at https://mozilla.org/MPL/2.0/.
use html5ever::driver::{ParseOpts, Parser};
use html5ever::tendril::{StrTendril, TendrilSink};
use kuchikiki::Sink;
@@ -1,3 +1,8 @@
// Copyright (c) 2021 The Brave Authors. All rights reserved.
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at https://mozilla.org/MPL/2.0/.
#![allow(dead_code)]
extern crate distance;
extern crate html5ever;
@@ -1,3 +1,8 @@
// Copyright (c) 2021 The Brave Authors. All rights reserved.
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at https://mozilla.org/MPL/2.0/.
#![allow(dead_code)]
extern crate distance;
extern crate html5ever;