Compare commits

...
10 Commits
Author SHA1 Message Date
csagan5 f5e5472dd4 Add click-tracking removal patch 2017-10-18 22:48:24 +02:00
csagan5 b1b989dac9 Split 3rd-party part 2017-10-18 21:38:17 +02:00
csagan5 1d039eb656 Explicitly mention all patches 2017-10-18 21:05:46 +02:00
csagan5 905432882c Mention blink removal 2017-10-18 11:06:59 +02:00
csagan5 61ee5cb055 Added Changelog 2017-10-18 09:41:10 +02:00
csagan5 33f6df6958 Mention new click-tracking removal patch 2017-10-18 09:32:54 +02:00
csagan5 82e9d2d28e New release: fix google fonts patch 2017-10-16 23:29:29 +02:00
csagan5 2c679f5ff7 Improve documentation 2017-10-16 23:28:13 +02:00
CarlandGitHub 36827a2b1e Mention codecs and speed optimizations 2017-10-16 00:22:39 +02:00
csagan5 d1ca11e008 Mention privacy patches 2017-10-12 22:58:56 +02:00
4 changed files with 106 additions and 12 deletions
+22
View File
@@ -0,0 +1,22 @@
# 63.0.3239.6
* added Bromite patch for Google search results click-tracking removal
* added x86 target CPU
* fixed red blink frame
# 63.0.3235.2
* first release with NoChromo adblocking patch
* Bromite patch: disable NTP remote suggestions
* added some Inox/Iridium/Ungoogled-Chromium patches, namely:
** DuckDuckGo search engine
** disable battery status service
** disable formatting in OmniBox
** disable GCM status checks
** use local fonts instead of fonts from Google servers
** disable updater pings
** do not enable Google integrations by default (translation, lookup, etc)
** disable the ad promo system
** do not store passwords by default
** do not fetch Google promotions
** restore classic NTP
** only keep cookies until exit
** block third-party cookies
+14 -12
View File
@@ -2,7 +2,7 @@
<img src="https://www.bromite.org/android-icon-192x192.png" width="96" alt="Bromite" />
Bromite is [Chromium](https://www.chromium.org/Home) plus some patches for ad blocking.
Bromite is [Chromium](https://www.chromium.org/Home) plus some patches for ad blocking and enhanced privacy.
See [open issues](https://github.com/bromite/bromite/issues) for the development in progress.
@@ -21,15 +21,11 @@ ETH donations address: `0xf47ff39223d828f99fec5ab53bd068c5c0522042`
# Features
* adblocking (currently baked-in, no configuration options available)
* some privacy patches from Inox patchset, ungoogled-chromium and Iridium projects
# How to build
The [bromite main repository](https://github.com/bromite/bromite) contains tags for each corresponding Chromium release (see https://chromium.googlesource.com/chromium/src.git).
Each tag has the corresponding patches that can be applied on top of the chromium codebase.
Please refer to official Chromium build documentation to get started on how to build Chromium; if you can build Chromium for Android, you can build Bromite.
* remove click-tracking from Google search results
* [DuckDuckGo](https://duckduckgo.com/) search engine (select it from search engines under settings)
* privacy enhancement patches from Inox patchset, ungoogled-chromium and Iridium projects
* all codecs included (proprietary, open H.264 etc.)
* built with official Chrome optimizations
# Releases
@@ -37,15 +33,21 @@ A build server goes through the very lengthy build operation and then new versio
Each tag corresponds to a Chromium release tag.
# How to build
The [bromite main repository](https://github.com/bromite/bromite) contains tags for each corresponding Chromium release (see https://chromium.googlesource.com/chromium/src.git).
Please refer to [official Chromium build documentation](https://www.chromium.org/developers/how-tos/get-the-code) to get started on how to build Chromium; if you can build Chromium for Android, you can build Bromite.
# Credits
* [Chromium project](https://www.chromium.org/Home) and developers
* [ungoogled-chromium](https://github.com/Eloston/ungoogled-chromium) for some patches
* Iridium project for some patches (taken from above ungoogled-chromium)
* [Inox patchset](https://github.com/gcarq/inox-patchset) for some patches (taken from above ungoogled-chromium)
* [Chromium project](https://www.chromium.org/Home)
* nochromo for the original adblock patch
* AdBlock Plus, uBlock, EasyList and EasyPrivacy for the compilation of original adblock patch
# License
[GNU GPL v3](./LICENSE)
The patches published as part of the Bromite project are released under [GNU GPL v3](./LICENSE).
@@ -0,0 +1,13 @@
diff --git a/tracing/third_party/gl-matrix/jsdoc-template/static/default.css b/tracing/third_party/gl-matrix/jsdoc-template/static/default.css
index efcf782..99a6767 100644
--- a/third_party/catapult/tracing/third_party/gl-matrix/jsdoc-template/static/default.css
+++ b/third_party/catapult/tracing/third_party/gl-matrix/jsdoc-template/static/default.css
@@ -168,7 +168,7 @@ ul.inheritsList
/* Copied from styles.css generated by Github Pages */
-@import url(https://fonts.googleapis.com/css?family=Lato:300italic,700italic,300,700);
+@import url(chrome://resources/css/roboto.css);
body {
padding:50px;
@@ -0,0 +1,57 @@
commit 8d0b67d87462d537af6f7eb0cf445a2f66d5dd5c
Author: csagan5 <32685696+csagan5@users.noreply.github.com>
Date: Sun Oct 15 18:01:18 2017 +0200
Remove click tracking from google search results
diff --git a/third_party/WebKit/Source/core/dom/ContainerNode.cpp b/third_party/WebKit/Source/core/dom/ContainerNode.cpp
index 1bada98..fb15e01 100644
--- a/third_party/WebKit/Source/core/dom/ContainerNode.cpp
+++ b/third_party/WebKit/Source/core/dom/ContainerNode.cpp
@@ -58,6 +58,8 @@
#include "platform/bindings/RuntimeCallStats.h"
#include "platform/bindings/V8PerIsolateData.h"
+#include "base/logging.h"
+
namespace blink {
using namespace HTMLNames;
@@ -1391,6 +1393,26 @@ StaticElementList* ContainerNode::QuerySelectorAll(
return QuerySelectorAll(selectors, ASSERT_NO_EXCEPTION);
}
+// this logic here will cleanup click tracking from hyperlink nodes on search results
+static void applyInsertCustomization(Document *document, Node *c) {
+ if (c->getNodeType() != Node::kElementNode)
+ return;
+ Element *element = ToElement(c);
+
+ // filter out non-hyperlink nodes
+ if (element->tagName() != "A")
+ return;
+
+ // determine whether this is a Google search results page
+ WTF::String domain = document->GetSecurityOrigin()->Domain();
+ size_t pos = domain.Find(".google.");
+ if ((pos != WTF::kNotFound) && (domain.length() - pos - 8 < 4)) {
+ //LOG(INFO) << "sanitizing Google search results hyperlink, href: " << element->getAttribute("href") << " onmousedown: " << element->getAttribute("onmousedown");
+ // remove attribute
+ element->removeAttribute("onmousedown");
+ }
+}
+
static void DispatchChildInsertionEvents(Node& child) {
if (child.IsInShadowTree())
return;
@@ -1402,6 +1424,10 @@ static void DispatchChildInsertionEvents(Node& child) {
Node* c = &child;
Document* document = &child.GetDocument();
+ // csagan5: no extension support in Chrom* for Android? no problem! we add custom code directly here
+ if (c->parentNode())
+ applyInsertCustomization(document, c);
+
if (c->parentNode() &&
document->HasListenerType(Document::kDOMNodeInsertedListener))
c->DispatchScopedEvent(MutationEvent::Create(