Initial commit

This commit is contained in:
Lino Silva
2024-04-08 14:23:46 +01:00
commit 7f0d70ae80
237 changed files with 82329 additions and 0 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,3 @@
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M3.79725 16.1152C3.32368 15.7995 2.9128 15.452 2.53262 15.0718C0.981421 13.4887 0 11.2722 0 8.8661C0 3.95807 3.95807 0 8.8661 0C13.7741 0 17.7322 3.95807 17.7322 8.8661C17.7322 11.2715 16.7835 13.4549 15.2017 15.0697C14.7873 15.452 14.3748 15.8008 13.932 16.1172C12.5065 17.0988 10.7654 17.7 8.8661 17.7C6.96466 17.7 5.22417 17.1297 3.80101 16.1177L3.79725 16.1152ZM3.69939 14.6827L3.67071 14.7766L3.74523 14.8405C5.12316 16.0215 6.89601 16.7441 8.86573 16.7442C10.836 16.7442 12.6084 16.0215 14.0177 14.8416L14.0939 14.7778L14.0648 14.6827C13.6922 13.4633 12.5734 12.5801 11.2487 12.5801H6.51547C5.19077 12.5801 4.072 13.4633 3.69939 14.6827ZM14.7532 13.7632L14.7947 13.8462H14.9594L15.0044 13.7902C16.0874 12.4447 16.7442 10.7374 16.7442 8.8661C16.7442 4.53281 13.1994 0.988015 8.8661 0.988015C4.53281 0.988015 0.988014 4.53281 0.988014 8.8661C0.988014 10.7375 1.64492 12.4456 2.76137 13.7919L2.90974 13.9708L3.01165 13.7619C3.63124 12.4918 4.96445 11.5921 6.51547 11.5921H11.2487C12.768 11.5921 14.1016 12.4601 14.7532 13.7632ZM5.15206 6.93408C5.15206 4.8917 6.82372 3.22004 8.8661 3.22004C10.9085 3.22004 12.5801 4.8917 12.5801 6.93408C12.5801 8.97646 10.9085 10.6481 8.8661 10.6481C6.82372 10.6481 5.15206 8.97646 5.15206 6.93408ZM6.14007 6.93408C6.14007 8.43374 7.36644 9.66011 8.8661 9.66011C10.3658 9.66011 11.5921 8.43374 11.5921 6.93408C11.5921 5.43442 10.3658 4.20805 8.8661 4.20805C7.36644 4.20805 6.14007 5.43442 6.14007 6.93408Z" fill="#393939"/>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

File diff suppressed because one or more lines are too long
@@ -0,0 +1,110 @@
/*******************************************************************************
uBlock Origin - a browser extension to block requests.
Copyright (C) 2019-present Raymond Hill
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program 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 this program. If not, see {http://www.gnu.org/licenses/}.
Home: https://github.com/gorhill/uBlock
*/
(function() {
'use strict';
// https://developers.google.com/analytics/devguides/collection/analyticsjs/
const noopfn = function() {
};
//
const Tracker = function() {
};
const p = Tracker.prototype;
p.get = noopfn;
p.set = noopfn;
p.send = noopfn;
//
const w = window;
const gaName = w.GoogleAnalyticsObject || 'ga';
const gaQueue = w[gaName];
// https://github.com/uBlockOrigin/uAssets/pull/4115
const ga = function() {
const len = arguments.length;
if ( len === 0 ) { return; }
const args = Array.from(arguments);
let fn;
let a = args[len-1];
if ( a instanceof Object && a.hitCallback instanceof Function ) {
fn = a.hitCallback;
} else if ( a instanceof Function ) {
fn = ( ) => { a(ga.create()); };
} else {
const pos = args.indexOf('hitCallback');
if ( pos !== -1 && args[pos+1] instanceof Function ) {
fn = args[pos+1];
}
}
if ( fn instanceof Function === false ) { return; }
try {
fn();
} catch (ex) {
}
};
ga.create = function() {
return new Tracker();
};
ga.getByName = function() {
return new Tracker();
};
ga.getAll = function() {
return [new Tracker()];
};
ga.remove = noopfn;
// https://github.com/uBlockOrigin/uAssets/issues/2107
ga.loaded = true;
w[gaName] = ga;
// https://github.com/gorhill/uBlock/issues/3075
const dl = w.dataLayer;
if ( dl instanceof Object ) {
if ( dl.hide instanceof Object && typeof dl.hide.end === 'function' ) {
dl.hide.end();
dl.hide.end = ()=>{};
}
if ( typeof dl.push === 'function' ) {
const doCallback = function(item) {
if ( item instanceof Object === false ) { return; }
if ( typeof item.eventCallback !== 'function' ) { return; }
setTimeout(item.eventCallback, 1);
item.eventCallback = ()=>{};
};
dl.push = new Proxy(dl.push, {
apply: function(target, thisArg, args) {
doCallback(args[0]);
return Reflect.apply(target, thisArg, args);
}
});
if ( Array.isArray(dl) ) {
const q = dl.slice();
for ( const item of q ) {
doCallback(item);
}
}
}
}
// empty ga queue
if ( gaQueue instanceof Function && Array.isArray(gaQueue.q) ) {
const q = gaQueue.q.slice();
gaQueue.q.length = 0;
for ( const entry of q ) {
ga(...entry);
}
}
})();
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long