mirror of
https://0xacab.org/dCF/deCloudflare.git
synced 2025-01-15 03:37:00 -05:00
.
This commit is contained in:
parent
70ee3c1025
commit
e52eb2f775
@ -9,7 +9,7 @@
|
||||
}
|
||||
},
|
||||
"version": "1.0.7.1",
|
||||
"update_link": "https://framagit.org/dCF/deCloudflare/-/raw/master/addons/releases/isat.xpi?20a0236da6d587ecf65ea4c1438e9fc7dcaf046d5fc9b138b2ba4cf65481be15",
|
||||
"update_link": "https://framagit.org/dCF/deCloudflare/-/raw/master/addons/releases/isat.xpi",
|
||||
"update_hash": "sha256:20a0236da6d587ecf65ea4c1438e9fc7dcaf046d5fc9b138b2ba4cf65481be15"
|
||||
}
|
||||
]
|
||||
@ -23,7 +23,7 @@
|
||||
}
|
||||
},
|
||||
"version": "1.0.27",
|
||||
"update_link": "https://framagit.org/dCF/deCloudflare/-/raw/master/addons/releases/ismm.xpi?0854436688e68dbd6c731eb4fc39e1a6dbe97d0b4374c4e8f8a24a889d6a337f",
|
||||
"update_link": "https://framagit.org/dCF/deCloudflare/-/raw/master/addons/releases/ismm.xpi",
|
||||
"update_hash": "sha256:0854436688e68dbd6c731eb4fc39e1a6dbe97d0b4374c4e8f8a24a889d6a337f"
|
||||
}
|
||||
]
|
||||
@ -37,7 +37,7 @@
|
||||
}
|
||||
},
|
||||
"version": "1.0.6.1",
|
||||
"update_link": "https://framagit.org/dCF/deCloudflare/-/raw/master/addons/releases/urjm.xpi?0664ae01e3f13663db95640c55d2ed2406f82800ce276ca4eb3c3e3c501ce297",
|
||||
"update_link": "https://framagit.org/dCF/deCloudflare/-/raw/master/addons/releases/urjm.xpi",
|
||||
"update_hash": "sha256:0664ae01e3f13663db95640c55d2ed2406f82800ce276ca4eb3c3e3c501ce297"
|
||||
}
|
||||
]
|
||||
@ -51,10 +51,10 @@
|
||||
}
|
||||
},
|
||||
"version": "1.0.1.1",
|
||||
"update_link": "https://framagit.org/dCF/deCloudflare/-/raw/master/addons/releases/bcma.xpi?bf5c3cbf48d59073fbbf251d9e04b84b23d4c7b0955ed0896214ab9463ad49b6",
|
||||
"update_link": "https://framagit.org/dCF/deCloudflare/-/raw/master/addons/releases/bcma.xpi",
|
||||
"update_hash": "sha256:bf5c3cbf48d59073fbbf251d9e04b84b23d4c7b0955ed0896214ab9463ad49b6"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,192 +0,0 @@
|
||||
if (document.body) {
|
||||
if (['ombrelo.x66j7jej74efeulffzy3hu3p4dtfruiwb3vv6ec7b5bxlkogxw5vnpid.onion', 'ombrelo.eu.org'].includes(location.hostname)) {
|
||||
if (location.pathname == '/' || location.pathname == '/a/') {
|
||||
browser.storage.local.get().then(d => {
|
||||
let csl = 0,
|
||||
cs = (function () {
|
||||
let s = document.createElement('style');
|
||||
document.head.appendChild(s);
|
||||
return s.sheet;
|
||||
})();
|
||||
if (cs) {
|
||||
let bMain = (location.pathname == '/') ? true : false;
|
||||
(d.data || '').split("\n").forEach(e => {
|
||||
if (e.includes('/')) {
|
||||
e = e.split('/');
|
||||
if (bMain) {
|
||||
if (e[0] == 'f' || e[0] == 'd') {
|
||||
cs.insertRule("blockquote.seres[data-f*='/" + e[0] + "=" + e[1] + "']{display:none !important}", csl);
|
||||
csl++;
|
||||
}
|
||||
if (e[0] == 'a' || e[0] == 'v') {
|
||||
cs.insertRule("div#box_result table tr[z" + e[0] + "='" + e[1] + "']{display:none !important}", csl);
|
||||
csl++;
|
||||
}
|
||||
} else {
|
||||
if (e[0] == 'f' || e[0] == 'd') {
|
||||
cs.insertRule("div#m table tr[af*='/" + e[0] + "=" + e[1] + "']{display:none !important}", csl);
|
||||
csl++;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
if (d.idn == 'y') {
|
||||
cs.insertRule((bMain ? "blockquote.seres[data-f*='/d=xn--'],blockquote.seres[data-f*='/f=xn--']{display:none !important}" : "div#m table tr[af*='/d=xn--'],div#m table tr[af*='/f=xn--']{display:none !important}"), csl);
|
||||
csl++;
|
||||
}
|
||||
if (d.mim == 'y') {
|
||||
cs.insertRule((bMain ? "div#box_result > details blockquote.opmor,blockquote.seres[data-f*='/mitm']{display:none !important}" : "div#m > details,tr td.cf{display:none !important}"), csl);
|
||||
csl++;
|
||||
}
|
||||
if (bMain) {
|
||||
if (d.sex == 'y') {
|
||||
cs.insertRule("blockquote.seres[data-f*='/nsfw']{display:none !important}", csl);
|
||||
csl++;
|
||||
}
|
||||
if (d.att == 'y') {
|
||||
cs.insertRule("blockquote.seres[data-f*='/att']{display:none !important}", csl);
|
||||
csl++;
|
||||
}
|
||||
if (document.getElementById('box_result')) {
|
||||
(new MutationObserver(i => {
|
||||
document.querySelectorAll("blockquote.seres[data-f] span.poitu.banME").forEach(j => {
|
||||
if (j.dataset.done != 1) {
|
||||
j.removeAttribute('onclick');
|
||||
j.addEventListener('click', k => {
|
||||
let kB = (k.target).parentNode.parentNode;
|
||||
let f = kB.dataset.f.split('/f=', 2)[1].split('/', 2)[0];
|
||||
if (f.length >= 4) {
|
||||
browser.storage.local.get(['data']).then(d => {
|
||||
let od = (d.data || '').split("\n").filter(x => x != '');
|
||||
od.push('f/' + f);
|
||||
browser.storage.local.set({
|
||||
'data': od.sort().filter((v, i, a) => a.indexOf(v) === i).filter(x => x != '').join("\n")
|
||||
}).then(() => {
|
||||
cs.insertRule("blockquote.seres[data-f*='/f=" + f + "']{display:none !important}", csl);
|
||||
csl++;
|
||||
}, () => {});
|
||||
}, () => {});
|
||||
}
|
||||
});
|
||||
j.dataset.done = 1;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll("table tr[za][zv] span.poitu.banME").forEach(j => {
|
||||
if (j.dataset.done != 1) {
|
||||
j.removeAttribute('onclick');
|
||||
j.addEventListener('click', k => {
|
||||
let f = (k.target).parentNode.parentNode.parentNode.getAttribute('za');
|
||||
if (f.length >= 3) {
|
||||
browser.storage.local.get(['data']).then(d => {
|
||||
let od = (d.data || '').split("\n").filter(x => x != '');
|
||||
od.push('a/' + f);
|
||||
browser.storage.local.set({
|
||||
'data': od.sort().filter((v, i, a) => a.indexOf(v) === i).filter(x => x != '').join("\n")
|
||||
}).then(() => {
|
||||
cs.insertRule("div#box_result table tr[za='" + f + "']{display:none !important}", csl);
|
||||
csl++;
|
||||
}, () => {});
|
||||
}, () => {});
|
||||
}
|
||||
});
|
||||
j.dataset.done = 1;
|
||||
}
|
||||
});
|
||||
})).observe(document.getElementById('box_result'), {
|
||||
childList: true,
|
||||
subtree: true
|
||||
});
|
||||
}
|
||||
} else {
|
||||
if (document.getElementById('m')) {
|
||||
document.querySelectorAll("div#m table tr[af] span.u").forEach(j => {
|
||||
if (j.dataset.done != 1) {
|
||||
j.removeAttribute('onclick');
|
||||
j.addEventListener('click', k => {
|
||||
let f = (k.target).parentNode.parentNode.getAttribute('af').split('/f=', 2)[1];
|
||||
if (f.length >= 4) {
|
||||
browser.storage.local.get(['data']).then(d => {
|
||||
let od = (d.data || '').split("\n").filter(x => x != '');
|
||||
od.push('f/' + f);
|
||||
browser.storage.local.set({
|
||||
'data': od.sort().filter((v, i, a) => a.indexOf(v) === i).filter(x => x != '').join("\n")
|
||||
}).then(() => {
|
||||
cs.insertRule("div#m table tr[af*='/f=" + f + "']{display:none !important}", csl);
|
||||
csl++;
|
||||
}, () => {});
|
||||
}, () => {});
|
||||
}
|
||||
});
|
||||
j.dataset.done = 1;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}, () => {});
|
||||
}
|
||||
} else {
|
||||
if (location.href.endsWith('/edit.html')) {
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
browser.storage.local.get().then(d => {
|
||||
fetch('i18n/' + (d.ul || 'eo') + '.json', {
|
||||
method: 'GET'
|
||||
}).then(j => j.json()).then(j => {
|
||||
document.querySelectorAll('span[transk]').forEach(x => {
|
||||
x.innerText = j[x.getAttribute('transk')];
|
||||
});
|
||||
});
|
||||
document.getElementById('bl').value = d.data || '';
|
||||
document.getElementById('haidn').checked = (d.idn == 'y') ? true : false;
|
||||
document.getElementById('hamim').checked = (d.mim == 'y') ? true : false;
|
||||
document.getElementById('hasex').checked = (d.sex == 'y') ? true : false;
|
||||
document.getElementById('haatt').checked = (d.att == 'y') ? true : false;
|
||||
}, () => {});
|
||||
document.getElementById('save').addEventListener('click', () => {
|
||||
document.getElementById('bl').style.display = 'none';
|
||||
let data = document.getElementById('bl').value.split("\n"),
|
||||
newdata = [];
|
||||
data.forEach(d => {
|
||||
if (/^(f|d|a|v)\/([a-zA-Z0-9._-]{3,255})$/.test(d)) {
|
||||
newdata.push(d);
|
||||
}
|
||||
});
|
||||
browser.storage.local.set({
|
||||
'data': newdata.sort().filter((v, i, a) => a.indexOf(v) === i).filter(x => x != '').join("\n")
|
||||
}).then(() => {
|
||||
location.reload(true);
|
||||
}, () => {});
|
||||
});
|
||||
document.getElementById('haidn').addEventListener('click', () => {
|
||||
browser.storage.local.set({
|
||||
'idn': (document.getElementById('haidn').checked ? 'y' : 'n')
|
||||
});
|
||||
});
|
||||
document.getElementById('hamim').addEventListener('click', () => {
|
||||
browser.storage.local.set({
|
||||
'mim': (document.getElementById('hamim').checked ? 'y' : 'n')
|
||||
});
|
||||
});
|
||||
document.getElementById('hasex').addEventListener('click', () => {
|
||||
browser.storage.local.set({
|
||||
'sex': (document.getElementById('hasex').checked ? 'y' : 'n')
|
||||
});
|
||||
});
|
||||
document.getElementById('haatt').addEventListener('click', () => {
|
||||
browser.storage.local.set({
|
||||
'att': (document.getElementById('haatt').checked ? 'y' : 'n')
|
||||
});
|
||||
});
|
||||
document.getElementById('myul').addEventListener('change', () => {
|
||||
if (document.getElementById('myul').value != '') {
|
||||
browser.storage.local.set({
|
||||
'ul': document.getElementById('myul').value
|
||||
}).then(() => {
|
||||
location.reload(true);
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
@ -1,148 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
|
||||
</head>
|
||||
<body>
|
||||
<br>
|
||||
<pre>
|
||||
|
||||
<span transk="fmt"></span>:
|
||||
f/FQDN
|
||||
<span transk="xf1"></span>
|
||||
<span transk="exp"></span>: f/www.ekzemplo.com
|
||||
<span transk="exp"></span>: f/ekzemplo.net
|
||||
d/<span transk="xdomn"></span>
|
||||
<span transk="xd1"></span>
|
||||
<span transk="exp"></span>: d/ekzemplo.org
|
||||
a/<span transk="xautr"></span>
|
||||
<span transk="xa1"></span>
|
||||
<span transk="exp"></span>: a/NeForgEsuAlklAkiAmasButOn0N
|
||||
v/<span transk="xviid"></span>
|
||||
<span transk="xv1"></span>
|
||||
<span transk="exp"></span>: v/FiLmO
|
||||
</pre>
|
||||
<br>
|
||||
<label><input type="checkbox" id="haidn"> <span transk="hididn"></span> (IDN)</label><br>
|
||||
<label><input type="checkbox" id="hamim"> <span transk="hidmitm"></span> (/mitm)</label><br>
|
||||
<label><input type="checkbox" id="hasex"> <span transk="hidnsfw"></span> (/nsfw)</label><br>
|
||||
<label><input type="checkbox" id="haatt"> <span transk="hidatt"></span> (/att)</label><br>
|
||||
<br>
|
||||
<button type="button" id="save"> <span transk="save"></span> </button><br>
|
||||
<textarea id="bl" cols="30" rows="10"></textarea>
|
||||
<br> <br>
|
||||
<b>💬 Internacio</b><br>
|
||||
<select id="myul">
|
||||
<option value="" selected> --- </option>
|
||||
<option value="af">af | Afrikaans</option>
|
||||
<option value="am">am | አማርኛ</option>
|
||||
<option value="ar">ar | العربية</option>
|
||||
<option value="az">az | Azərbaycanca</option>
|
||||
<option value="be">be | Беларуская</option>
|
||||
<option value="bg">bg | Български</option>
|
||||
<option value="bn">bn | বাংলা</option>
|
||||
<option value="bs">bs | босански</option>
|
||||
<option value="ca">ca | Català</option>
|
||||
<option value="cb">cb | Cebuan</option>
|
||||
<option value="co">co | Corsu</option>
|
||||
<option value="cs">cs | Čeština</option>
|
||||
<option value="cy">cy | Cymraeg</option>
|
||||
<option value="da">da | Dansk</option>
|
||||
<option value="de">de | Deutsch</option>
|
||||
<option value="el">el | Ελληνικά</option>
|
||||
<option value="en">en | English</option>
|
||||
<option value="eo">eo | Esperanto 🏆</option>
|
||||
<option value="es">es | Español</option>
|
||||
<option value="et">et | Eesti</option>
|
||||
<option value="eu">eu | Euskara</option>
|
||||
<option value="fa">fa | فارسی</option>
|
||||
<option value="fi">fi | Suomi</option>
|
||||
<option value="fl">fl | Wikang Filipino</option>
|
||||
<option value="fr">fr | Français</option>
|
||||
<option value="fy">fy | Frisian</option>
|
||||
<option value="ga">ga | Gaeilge</option>
|
||||
<option value="gd">gd | Gàidhlig</option>
|
||||
<option value="gl">gl | Galego</option>
|
||||
<option value="gu">gu | Gujarātī</option>
|
||||
<option value="ha">ha | Harshen</option>
|
||||
<option value="he">he | עברית</option>
|
||||
<option value="hi">hi | हिंदी</option>
|
||||
<option value="hm">hm | lus Hmoob</option>
|
||||
<option value="hr">hr | Hrvatski</option>
|
||||
<option value="ht">ht | Kreyòl</option>
|
||||
<option value="hu">hu | Magyar</option>
|
||||
<option value="hw">hw | ʻŌlelo Hawaiʻi</option>
|
||||
<option value="hy">hy | հայերեն</option>
|
||||
<option value="id">id | Indonesia</option>
|
||||
<option value="ig">ig | Asụsụ Igbo</option>
|
||||
<option value="is">is | Íslenska</option>
|
||||
<option value="it">it | Italiano</option>
|
||||
<option value="ja">ja | 日本語</option>
|
||||
<option value="jv">jv | ꦧꦱꦗꦮ</option>
|
||||
<option value="ka">ka | ქართული</option>
|
||||
<option value="kk">kk | Қазақша</option>
|
||||
<option value="km">km | ភាសាខ្មែរ</option>
|
||||
<option value="kn">kn | ಕನ್ನಡ</option>
|
||||
<option value="ko">ko | 힌디어</option>
|
||||
<option value="ku">ku | کوردی</option>
|
||||
<option value="ky">ky | Кыргызча</option>
|
||||
<option value="la">la | Latīna</option>
|
||||
<option value="lb">lb | Lëtzebuergesch</option>
|
||||
<option value="lo">lo | ພາສາລາວ</option>
|
||||
<option value="lt">lt | Lietuvių</option>
|
||||
<option value="lv">lv | Latviešu</option>
|
||||
<option value="mg">mg | Malagasy</option>
|
||||
<option value="mi">mi | Māori</option>
|
||||
<option value="mk">mk | македонски</option>
|
||||
<option value="ml">ml | മലയാളം</option>
|
||||
<option value="mn">mn | монгол</option>
|
||||
<option value="mr">mr | मराठी</option>
|
||||
<option value="ms">ms | bahasa Melayu</option>
|
||||
<option value="mt">mt | Malti</option>
|
||||
<option value="my">my | Burmese</option>
|
||||
<option value="ne">ne | नेपाली</option>
|
||||
<option value="nl">nl | Nederlands</option>
|
||||
<option value="no">no | Norsk Bokmål</option>
|
||||
<option value="ny">ny | Chichewa</option>
|
||||
<option value="or">or | ଓଡ଼ିଆ</option>
|
||||
<option value="pa">pa | ਪੰਜਾਬੀ</option>
|
||||
<option value="pl">pl | Polski</option>
|
||||
<option value="ps">ps | پښتو</option>
|
||||
<option value="pt">pt | Português</option>
|
||||
<option value="ro">ro | Română</option>
|
||||
<option value="ru">ru | Русский</option>
|
||||
<option value="rw">rw | Kinyarwanda</option>
|
||||
<option value="sd">sd | سنڌي</option>
|
||||
<option value="si">si | සිංහල</option>
|
||||
<option value="sk">sk | Slovenčina</option>
|
||||
<option value="sl">sl | Slovenščina</option>
|
||||
<option value="sm">sm | Gagana Sāmoa</option>
|
||||
<option value="sn">sn | chiShona</option>
|
||||
<option value="so">so | Af Soomaali</option>
|
||||
<option value="sq">sq | Shqip</option>
|
||||
<option value="sr">sr | Српски</option>
|
||||
<option value="st">st | Sesotho</option>
|
||||
<option value="su">su | Basa Sunda</option>
|
||||
<option value="sv">sv | Svenska</option>
|
||||
<option value="sw">sw | Kiswahili</option>
|
||||
<option value="ta">ta | தமிழ்</option>
|
||||
<option value="te">te | తెలుగు</option>
|
||||
<option value="tg">tg | тоҷикӣ</option>
|
||||
<option value="th">th | ภาษาไทย</option>
|
||||
<option value="tk">tk | Türkmençe</option>
|
||||
<option value="tr">tr | Türkçe</option>
|
||||
<option value="tt">tt | татар теле</option>
|
||||
<option value="ug">ug | ئۇيغۇرچە</option>
|
||||
<option value="uk">uk | Українська</option>
|
||||
<option value="ur">ur | اردو</option>
|
||||
<option value="uz">uz | ózbekça</option>
|
||||
<option value="vi">vi | Tiếng Việt</option>
|
||||
<option value="xh">xh | isiXhosa</option>
|
||||
<option value="yi">yi | אידיש</option>
|
||||
<option value="yo">yo | Èdè Yorùbá</option>
|
||||
<option value="zh">zh | 简体</option>
|
||||
<option value="zt">zt | 繁體</option>
|
||||
<option value="zu">zu | isiZulu</option>
|
||||
</select>
|
||||
<script src="cs.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -1,21 +0,0 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Crimeflare <http://crimeflare.eu.org>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
@ -1,20 +0,0 @@
|
||||
if (document.body && ['ombrelo.x66j7jej74efeulffzy3hu3p4dtfruiwb3vv6ec7b5bxlkogxw5vnpid.onion', 'ombrelo.eu.org'].includes(location.hostname)) {
|
||||
if (location.pathname == '/' && document.querySelectorAll("link[rel=stylesheet][href^='./oocss/']").length == 1) {
|
||||
browser.storage.local.get(['fcss']).then(d => {
|
||||
if (d.fcss && d.fcss.length > 0) {
|
||||
let csl = 0,
|
||||
cs = (function () {
|
||||
let s = document.createElement('style');
|
||||
document.head.appendChild(s);
|
||||
return s.sheet;
|
||||
})();
|
||||
if (cs) {
|
||||
d.fcss.forEach(x => {
|
||||
cs.insertRule(x, csl);
|
||||
csl++;
|
||||
});
|
||||
}
|
||||
}
|
||||
}, () => {});
|
||||
}
|
||||
}
|
@ -1,347 +0,0 @@
|
||||
let mul, csserr = '';
|
||||
function chgmenu(z) {
|
||||
document.querySelectorAll('div[id^=submu_]').forEach(x => {
|
||||
x.style.display = (x.id.replace('submu_', '') == z) ? 'block' : 'none';
|
||||
});
|
||||
document.querySelectorAll('button[id^=chgmu_]').forEach(x => {
|
||||
x.disabled = (x.id.replace('chgmu_', '') == z) ? true : false;
|
||||
});
|
||||
if (z == 13) {
|
||||
browser.browsingData.removeCache({});
|
||||
}
|
||||
}
|
||||
function savekv(k, v) {
|
||||
browser.storage.local.set({
|
||||
[k]: v
|
||||
});
|
||||
}
|
||||
function saveme() {
|
||||
document.body.style.display = 'none';
|
||||
browser.browsingData.removeCache({});
|
||||
let junk = '',
|
||||
mycss = [];
|
||||
junk = document.querySelector("input[type=radio][name='stp1_1']:checked").value;
|
||||
savekv('stp1_1', (['0', 'c', 'cr', 'tr'].includes(junk) ? junk : '0'));
|
||||
if (junk == 'c' && document.getElementById('iact_1_1').value.length == 7) {
|
||||
mycss.push("body#webpage,form#msf{background-color:" + document.getElementById('iact_1_1').value + "}");
|
||||
}
|
||||
if (junk == 'cr') {
|
||||
mycss.push("body{background-position:center center;background-repeat:no-repeat;background-attachment:fixed;background-size:cover;background-image:url(https://ombrelo.eu.org/dosiero/bildo/ekranfono)}");
|
||||
}
|
||||
if (junk == 'tr') {
|
||||
mycss.push("body{background-position:center center;background-repeat:no-repeat;background-attachment:fixed;background-size:cover;background-image:url(http://ombrelo.x66j7jej74efeulffzy3hu3p4dtfruiwb3vv6ec7b5bxlkogxw5vnpid.onion/dosiero/bildo/ekranfono)}");
|
||||
}
|
||||
junk = document.querySelector("input[type=radio][name='stp1_2']:checked").value;
|
||||
savekv('stp1_2', (['0', 'y'].includes(junk) ? junk : '0'));
|
||||
if (junk == 'y') {
|
||||
mycss.push("hr{opacity:0}");
|
||||
}
|
||||
junk = document.querySelector("input[type=radio][name='stp2_1']:checked").value;
|
||||
savekv('stp2_1', (['0', 'c', 'bl'].includes(junk) ? junk : '0'));
|
||||
if (junk == 'bl') {
|
||||
mycss.push("span#srchbox,input#qbar.srch_input{background:black}");
|
||||
mycss.push("span#srchbox input[type=image]{filter:invert(1)}");
|
||||
}
|
||||
if (junk == 'c' && document.getElementById('iact_2_1').value.length == 7) {
|
||||
mycss.push("span#srchbox,input#qbar.srch_input{background:" + document.getElementById('iact_2_1').value + "}");
|
||||
mycss.push("span#srchbox input[type=image]{display:none}");
|
||||
}
|
||||
junk = document.querySelector("input[type=radio][name='stp2_2']:checked").value;
|
||||
savekv('stp2_2', (['0', 'c'].includes(junk) ? junk : '0'));
|
||||
if (junk == 'c' && document.getElementById('iact_2_2').value.length == 7) {
|
||||
mycss.push("span#srchbox{border:1px solid " + document.getElementById('iact_2_2').value + "}");
|
||||
}
|
||||
junk = document.querySelector("input[type=radio][name='stp2_3']:checked").value;
|
||||
savekv('stp2_3', (['0', 'c'].includes(junk) ? junk : '0'));
|
||||
if (junk == 'c' && document.getElementById('iact_2_3').value.length == 7) {
|
||||
mycss.push("input#qbar.srch_input{color:" + document.getElementById('iact_2_3').value + "}");
|
||||
}
|
||||
junk = document.querySelector("input[type=radio][name='stp3_1']:checked").value;
|
||||
savekv('stp3_1', (['0', 'y'].includes(junk) ? junk : '0'));
|
||||
if (junk == 'y') {
|
||||
mycss.push("span#srchbox input[type=image],img#clrme{display:none}");
|
||||
}
|
||||
junk = document.querySelector("input[type=radio][name='stp3_2']:checked").value;
|
||||
savekv('stp3_2', (['0', 'y'].includes(junk) ? junk : '0'));
|
||||
if (junk == 'y') {
|
||||
mycss.push("div#ctbx details img,img#clrme{filter:invert(1)}");
|
||||
}
|
||||
junk = document.querySelector("input[type=radio][name='stp4_1']:checked").value;
|
||||
savekv('stp4_1', (['0', 'c'].includes(junk) ? junk : '0'));
|
||||
if (junk == 'c' && document.getElementById('iact_4_1').value.length == 7) {
|
||||
mycss.push("select.srch_input{background:" + document.getElementById('iact_4_1').value + "}");
|
||||
}
|
||||
junk = document.querySelector("input[type=radio][name='stp4_2']:checked").value;
|
||||
savekv('stp4_2', (['0', 'c'].includes(junk) ? junk : '0'));
|
||||
if (junk == 'c' && document.getElementById('iact_4_2').value.length == 7) {
|
||||
mycss.push("select.srch_input{color:" + document.getElementById('iact_4_2').value + "}");
|
||||
}
|
||||
junk = document.querySelector("input[type=radio][name='stp5_1']:checked").value;
|
||||
savekv('stp5_1', (['0', 'c'].includes(junk) ? junk : '0'));
|
||||
if (junk == 'c' && document.getElementById('iact_5_1').value.length == 7) {
|
||||
mycss.push("table#cats td label.lbon,table#cats td label.lbon:hover{background:" + document.getElementById('iact_5_1').value + "}");
|
||||
}
|
||||
junk = document.querySelector("input[type=radio][name='stp5_2']:checked").value;
|
||||
savekv('stp5_2', (['0', 'c'].includes(junk) ? junk : '0'));
|
||||
if (junk == 'c' && document.getElementById('iact_5_2').value.length == 7) {
|
||||
mycss.push("table#cats td label.lbon{color:" + document.getElementById('iact_5_2').value + "}");
|
||||
}
|
||||
junk = document.querySelector("input[type=radio][name='stp6_1']:checked").value;
|
||||
savekv('stp6_1', (['0', 'c'].includes(junk) ? junk : '0'));
|
||||
if (junk == 'c' && document.getElementById('iact_6_1').value.length == 7) {
|
||||
mycss.push("table#cats td label:not(.lbon):hover{background:" + document.getElementById('iact_6_1').value + " !important}")
|
||||
mycss.push("table#cats td label,table#cats td summary{background:" + document.getElementById('iact_6_1').value + "}");
|
||||
}
|
||||
junk = document.querySelector("input[type=radio][name='stp6_2']:checked").value;
|
||||
savekv('stp6_2', (['0', 'c'].includes(junk) ? junk : '0'));
|
||||
if (junk == 'c' && document.getElementById('iact_6_2').value.length == 7) {
|
||||
mycss.push("table#cats td label,table#cats td summary{color:" + document.getElementById('iact_6_2').value + "}");
|
||||
}
|
||||
junk = document.querySelector("input[type=radio][name='stp6_3']:checked").value;
|
||||
savekv('stp6_3', (['0', 'y'].includes(junk) ? junk : '0'));
|
||||
if (junk == 'y') {
|
||||
mycss.push("form#msf:not(:hover) span#scjs{display:unset !important}");
|
||||
}
|
||||
junk = document.querySelector("input[type=radio][name='stp6_4']:checked").value;
|
||||
savekv('stp6_4', (['0', 'c'].includes(junk) ? junk : '0'));
|
||||
if (junk == 'c' && document.getElementById('iact_6_4').value.length == 7) {
|
||||
mycss.push("form#msf{background:" + document.getElementById('iact_6_4').value + "}");
|
||||
}
|
||||
junk = document.querySelector("input[type=radio][name='stp7_1']:checked").value;
|
||||
savekv('stp7_1', (['0', 'c'].includes(junk) ? junk : '0'));
|
||||
if (junk == 'c' && document.getElementById('iact_7_1').value.length == 7) {
|
||||
mycss.push("blockquote.nfobox{border:1px solid " + document.getElementById('iact_7_1').value + " !important}");
|
||||
}
|
||||
junk = document.querySelector("input[type=radio][name='stp7_2']:checked").value;
|
||||
savekv('stp7_2', (['0', 'c'].includes(junk) ? junk : '0'));
|
||||
if (junk == 'c' && document.getElementById('iact_7_2').value.length == 7) {
|
||||
mycss.push("span.sx_tx{color:" + document.getElementById('iact_7_2').value + "}");
|
||||
}
|
||||
junk = document.querySelector("input[type=radio][name='stp8_1']:checked").value;
|
||||
savekv('stp8_1', (['0', 'c'].includes(junk) ? junk : '0'));
|
||||
if (junk == 'c' && document.getElementById('iact_8_1').value.length == 7) {
|
||||
mycss.push("a:not(.ind),details summary{color:" + document.getElementById('iact_8_1').value + "}");
|
||||
}
|
||||
junk = document.querySelector("input[type=radio][name='stp8_2']:checked").value;
|
||||
savekv('stp8_2', (['0', 'c'].includes(junk) ? junk : '0'));
|
||||
if (junk == 'c' && document.getElementById('iact_8_2').value.length == 7) {
|
||||
mycss.push("a:not(.ind):hover,details summary:hover{color:" + document.getElementById('iact_8_2').value + "}");
|
||||
}
|
||||
junk = document.querySelector("input[type=radio][name='stp9_1']:checked").value;
|
||||
savekv('stp9_1', (['0', 'c'].includes(junk) ? junk : '0'));
|
||||
if (junk == 'c' && document.getElementById('iact_9_1').value.length == 7) {
|
||||
mycss.push("span.sx_l,span.sx_l2{color:" + document.getElementById('iact_9_1').value + "}");
|
||||
}
|
||||
junk = document.querySelector("input[type=radio][name='stp10_1']:checked").value;
|
||||
savekv('stp10_1', (['0', 'c'].includes(junk) ? junk : '0'));
|
||||
if (junk == 'c' && document.getElementById('iact_10_1').value.length == 7) {
|
||||
mycss.push("span.sx_d,a.ind{color:" + document.getElementById('iact_10_1').value + "}");
|
||||
}
|
||||
junk = document.querySelector("input[type=radio][name='stp10_2']:checked").value;
|
||||
savekv('stp10_2', (['0', 'c'].includes(junk) ? junk : '0'));
|
||||
if (junk == 'c' && document.getElementById('iact_10_2').value.length == 7) {
|
||||
mycss.push("a:not(.mitm) > span.marker{text-decoration:underline " + document.getElementById('iact_10_2').value + "}");
|
||||
}
|
||||
junk = document.querySelector("input[type=radio][name='stp11_1']:checked").value;
|
||||
savekv('stp11_1', (['0', 'c'].includes(junk) ? junk : '0'));
|
||||
if (junk == 'c' && document.getElementById('iact_11_1').value.length == 7) {
|
||||
mycss.push("blockquote.seres,blockquote.seres:not(:hover){background:" + document.getElementById('iact_11_1').value + "}");
|
||||
mycss.push("hr.dotd{border:1px solid " + document.getElementById('iact_11_1').value + "}");
|
||||
}
|
||||
junk = document.querySelector("input[type=radio][name='stp11_2']:checked").value;
|
||||
savekv('stp11_2', (['0', 'c'].includes(junk) ? junk : '0'));
|
||||
if (junk == 'c' && document.getElementById('iact_11_2').value.length == 7) {
|
||||
mycss.push("blockquote.seres,blockquote.seres:not(:hover){border:1px solid " + document.getElementById('iact_11_2').value + "}");
|
||||
}
|
||||
junk = document.querySelector("input[type=radio][name='stp11_3']:checked").value;
|
||||
savekv('stp11_3', (['0', 'c'].includes(junk) ? junk : '0'));
|
||||
if (junk == 'c' && document.getElementById('iact_11_3').value.length == 7) {
|
||||
mycss.push("blockquote.seres:hover{background:" + document.getElementById('iact_11_3').value + "}");
|
||||
mycss.push("blockquote.seres:hover hr.dotd{border:1px solid " + document.getElementById('iact_11_3').value + "}");
|
||||
}
|
||||
junk = document.querySelector("input[type=radio][name='stp11_4']:checked").value;
|
||||
savekv('stp11_4', (['0', 'c'].includes(junk) ? junk : '0'));
|
||||
if (junk == 'c' && document.getElementById('iact_11_4').value.length == 7) {
|
||||
mycss.push("blockquote.seres:hover{border:1px solid " + document.getElementById('iact_11_4').value + "}");
|
||||
}
|
||||
document.querySelectorAll('input[type=color][id^=iact_]').forEach(t => {
|
||||
savekv(t.id.replace('iact_', 'clrvar_'), (t.value.length == 7 ? t.value : '#ffffff'));
|
||||
});
|
||||
let isbad = false,
|
||||
utest;
|
||||
junk = document.getElementById('stp12_css').value.split("\n").filter(v => v != '');
|
||||
junk.forEach(t => {
|
||||
t = t.toLowerCase().replace('"', "'").replace("\t", ' ').trim();
|
||||
if (!/^(.*)\{(.*)\}$/.test(t) || t.includes('[]') || t.includes('scri') || t.includes('url(') || t.includes('//')) {
|
||||
isbad = true;
|
||||
console.log('!', t);
|
||||
}
|
||||
t = t.split('{')[0];
|
||||
try {
|
||||
utest = document.querySelectorAll(t);
|
||||
utest = document.querySelectorAll("a," + t + ",b");
|
||||
} catch (u) {
|
||||
isbad = true;
|
||||
console.log('!', u);
|
||||
}
|
||||
});
|
||||
if (!isbad) {
|
||||
savekv('stp12_css', junk.join("\n"));
|
||||
junk.forEach(x => {
|
||||
mycss.push(x);
|
||||
});
|
||||
} else {
|
||||
alert(csserr);
|
||||
}
|
||||
savekv('fcss', mycss);
|
||||
document.body.style.display = 'block';
|
||||
}
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
if (location.search != '?ss') {
|
||||
browser.tabs.query({
|
||||
active: true,
|
||||
currentWindow: true
|
||||
}).then(t => {
|
||||
if (t[0]) {
|
||||
browser.tabs.update(t[0].id, {
|
||||
active: true,
|
||||
url: browser.runtime.getURL('dt.html?ss')
|
||||
});
|
||||
}
|
||||
}, () => {});
|
||||
}
|
||||
document.body.bgColor = '#f9f9fa';
|
||||
document.querySelectorAll('div[id^=submu_]').forEach(x => {
|
||||
if (x.id != 'submu_99') {
|
||||
x.style.display = 'none';
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('map area[id^=chgma_]').forEach(x => {
|
||||
let xi = x.id.replace('chgma_', '');
|
||||
x.addEventListener('click', (y) => {
|
||||
y.preventDefault();
|
||||
chgmenu(xi);
|
||||
});
|
||||
});
|
||||
document.querySelectorAll('button[id^=chgmu_]').forEach(x => {
|
||||
let xi = x.id.replace('chgmu_', '');
|
||||
x.addEventListener('click', () => {
|
||||
chgmenu(xi);
|
||||
});
|
||||
});
|
||||
document.querySelectorAll('input[type=color][id^=iact_]').forEach(x => {
|
||||
let xi = x.id.replace('iact_', 'stp');
|
||||
x.addEventListener('click', () => {
|
||||
document.querySelector('input[type=radio][name=' + xi + '][value=c]').checked = true;
|
||||
});
|
||||
});
|
||||
browser.storage.local.get().then(d => {
|
||||
if (d.stp1_1 != undefined) {
|
||||
Object.keys(d).forEach(x => {
|
||||
if (x.startsWith('clrvar_') || x == 'stp12_css') {
|
||||
document.getElementById(x.replace('clrvar_', 'iact_')).value = d[x];
|
||||
}
|
||||
if (x.startsWith('stp') && x != 'stp12_css') {
|
||||
if (document.querySelector("input[type=radio][name='" + x + "'][value='" + d[x] + "']")) {
|
||||
document.querySelector("input[type=radio][name='" + x + "'][value='" + d[x] + "']").checked = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
fetch('i18n/' + (d.ul || 'eo') + '.json', {
|
||||
method: 'GET'
|
||||
}).then(j => j.json()).then(j => {
|
||||
document.querySelectorAll('span[transk]').forEach(x => {
|
||||
x.innerText = j[x.getAttribute('transk')];
|
||||
});
|
||||
mul = d.ul || 'eo';
|
||||
csserr = j['er1'];
|
||||
});
|
||||
}, () => {});
|
||||
document.body.style.display = 'block';
|
||||
document.getElementById('impfile').addEventListener('change', function (ev) {
|
||||
let fr = new FileReader();
|
||||
fr.onload = function () {
|
||||
let junk = fr.result;
|
||||
if (junk.startsWith('{') && junk.endsWith('}')) {
|
||||
junk = JSON.parse(junk);
|
||||
if (junk.fcss != undefined) {
|
||||
Object.keys(junk).forEach(x => {
|
||||
savekv(x, junk[x]);
|
||||
});
|
||||
}
|
||||
browser.browsingData.removeCache({});
|
||||
location.reload(true);
|
||||
}
|
||||
}
|
||||
fr.readAsText(ev.target.files[0]);
|
||||
});
|
||||
document.getElementById('bt_save').addEventListener('click', () => {
|
||||
document.documentElement.style.animation = null;
|
||||
document.documentElement.offsetHeight;
|
||||
saveme();
|
||||
document.documentElement.style.animation = 'yfr 0.3s 1';
|
||||
});
|
||||
document.getElementById('bt_reld').addEventListener('click', () => {
|
||||
location.reload(true);
|
||||
});
|
||||
document.getElementById('bt_rst').addEventListener('click', () => {
|
||||
browser.storage.local.clear().then(() => {
|
||||
browser.storage.local.set({
|
||||
'ul': mul
|
||||
}).then(() => {
|
||||
location.reload(true);
|
||||
});
|
||||
});
|
||||
});
|
||||
document.getElementById('bt_opwc').addEventListener('click', () => {
|
||||
browser.tabs.create({
|
||||
active: true,
|
||||
url: 'https://ombrelo.eu.org/'
|
||||
});
|
||||
});
|
||||
document.getElementById('bt_opwt').addEventListener('click', () => {
|
||||
browser.tabs.create({
|
||||
active: true,
|
||||
url: 'http://ombrelo.x66j7jej74efeulffzy3hu3p4dtfruiwb3vv6ec7b5bxlkogxw5vnpid.onion/'
|
||||
});
|
||||
});
|
||||
document.getElementById('bt_opwg').addEventListener('click', () => {
|
||||
browser.tabs.create({
|
||||
active: true,
|
||||
url: 'http://ombrelo.x66j7jej74efeulffzy3hu3p4dtfruiwb3vv6ec7b5bxlkogxw5vnpid.onion/oo/desegno/#ul=' + mul
|
||||
});
|
||||
});
|
||||
document.getElementById('bt_exp').addEventListener('click', () => {
|
||||
browser.storage.local.get().then(d => {
|
||||
delete d.ul;
|
||||
let tmpFile, tmpDL;
|
||||
tmpFile = new Blob([JSON.stringify(d)], {
|
||||
type: 'text/plain'
|
||||
});
|
||||
tmpDL = document.createElement('a');
|
||||
tmpDL.download = 'mia.json';
|
||||
tmpDL.href = window.URL.createObjectURL(tmpFile);
|
||||
tmpDL.style.display = 'none';
|
||||
document.body.appendChild(tmpDL);
|
||||
tmpDL.click();
|
||||
}, () => {});
|
||||
});
|
||||
document.getElementById('bt_imp').addEventListener('click', () => {
|
||||
document.getElementById('impfile').click();
|
||||
});
|
||||
document.getElementById('myul').addEventListener('change', () => {
|
||||
if (document.getElementById('myul').value != '') {
|
||||
browser.storage.local.set({
|
||||
'ul': document.getElementById('myul').value
|
||||
}).then(() => {
|
||||
location.reload(true);
|
||||
});
|
||||
}
|
||||
});
|
||||
document.addEventListener('contextmenu', function (z) {
|
||||
if (z.target.tagName != 'TEXTAREA') {
|
||||
z.preventDefault();
|
||||
}
|
||||
});
|
||||
});
|
@ -1,21 +0,0 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Crimeflare <http://crimeflare.eu.org>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
@ -1,17 +0,0 @@
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
browser.storage.local.get(['onion']).then(g => {
|
||||
if (g.onion == 'y') {
|
||||
document.getElementById('ut1').checked = true;
|
||||
document.getElementById('ut2').checked = false;
|
||||
} else {
|
||||
document.getElementById('ut1').checked = false;
|
||||
document.getElementById('ut2').checked = true;
|
||||
}
|
||||
});
|
||||
document.getElementById('ut1').addEventListener('click', () => {
|
||||
browser.runtime.sendMessage(['onion', true]);
|
||||
});
|
||||
document.getElementById('ut2').addEventListener('click', () => {
|
||||
browser.runtime.sendMessage(['onion', false]);
|
||||
});
|
||||
});
|
@ -1,101 +0,0 @@
|
||||
let baseURL = 'http://ombrelo.x66j7jej74efeulffzy3hu3p4dtfruiwb3vv6ec7b5bxlkogxw5vnpid.onion/',
|
||||
uChoices = '';
|
||||
const BUclear = 'https://ombrelo.eu.org/',
|
||||
BUonion = 'http://ombrelo.x66j7jej74efeulffzy3hu3p4dtfruiwb3vv6ec7b5bxlkogxw5vnpid.onion/';
|
||||
browser.storage.local.get(null).then(g => {
|
||||
baseURL = (g.onion == 'y') ? BUonion : BUclear;
|
||||
uChoices = g.params || '';
|
||||
});
|
||||
browser.webRequest.onBeforeRequest.addListener(g => {
|
||||
if (g.method != 'GET' || g.type != 'main_frame' || g.parentFrameId != -1 || g.documentUrl != undefined || g.frameId != 0) {
|
||||
return {
|
||||
cancel: true
|
||||
};
|
||||
}
|
||||
let tmp;
|
||||
if (g.url.startsWith('https://ombrelo.test/?q=')) {
|
||||
let q = (new URL(g.url)).searchParams.get('q');
|
||||
if (q.length >= 2) {
|
||||
let htmlChoices = '';
|
||||
uChoices.split('&').forEach(akv => {
|
||||
if (akv.includes('=')) {
|
||||
tmp = akv.split('=');
|
||||
htmlChoices += '<input name=\"' + tmp[0] + '\" value=\"' + tmp[1] + '\">';
|
||||
}
|
||||
});
|
||||
browser.tabs.create({
|
||||
active: true,
|
||||
openerTabId: g.tabId,
|
||||
url: 'about:blank'
|
||||
}).then(t => {
|
||||
browser.tabs.remove(g.tabId);
|
||||
browser.tabs.executeScript(t.id, {
|
||||
matchAboutBlank: true,
|
||||
code: "document.documentElement.innerHTML='<html><head><meta http-equiv=\"content-type\" content=\"text/html;charset=UTF-8\"><title>🏤</title></head><body style=\"cursor:wait;height:100vh;overflow:hidden\"><form id=\"f\" method=\"POST\" style=\"display:none\">" + htmlChoices + "<input id=\"q\" name=\"query\"></form></body></html>';window.stop();" +
|
||||
"document.getElementById('f').action='" + baseURL + "';" +
|
||||
"document.getElementById('q').value=decodeURIComponent(atob('" +
|
||||
btoa(encodeURIComponent(q).replace(/%([0-9A-F]{2})/g, function (match, p1) {
|
||||
return String.fromCharCode(parseInt(p1, 16))
|
||||
})) +
|
||||
"').split('').map(function(c){return '%'+('00'+c.charCodeAt(0).toString(16)).slice(-2);}).join(''));" +
|
||||
"document.getElementById('f').submit();"
|
||||
});
|
||||
});
|
||||
return {
|
||||
cancel: true
|
||||
};
|
||||
}
|
||||
}
|
||||
if (g.url.startsWith('https://ombrelo.test/config,' + ((new Date()).toISOString().slice(0, 10).replace(/-/g, '')) + '!!') && /^http(:\/\/ombrelo\.x66j7jej74efeulffzy3hu3p4dtfruiwb3vv6ec7b5bxlkogxw5vnpid\.onion|s:\/\/ombrelo\.eu\.org)\//.test(g.originUrl)) {
|
||||
let ok = true,
|
||||
conf = atob(g.url.split('!!')[1]);
|
||||
if (!/^http(:\/\/ombrelo\.x66j7jej74efeulffzy3hu3p4dtfruiwb3vv6ec7b5bxlkogxw5vnpid\.onion|s:\/\/ombrelo\.eu\.org)\/\?oo\&(.*)rq=%s$/.test(conf)) {
|
||||
ok = false;
|
||||
}
|
||||
if (ok) {
|
||||
tmp = conf.split('?oo&')[0];
|
||||
if (tmp == BUclear || tmp == BUonion) {
|
||||
baseURL = tmp;
|
||||
} else {
|
||||
ok = false;
|
||||
}
|
||||
}
|
||||
if (ok) {
|
||||
tmp = (conf.split('/?oo')[1]).replace('&rq=%s', '');
|
||||
if (tmp.length == 0) {
|
||||
uChoices = '';
|
||||
} else {
|
||||
if (!/^\&([a-zA-Z0-9&=-]{4,})$/.test(tmp) || tmp.endsWith('&') || tmp.includes('&rq=') || tmp.includes('&&')) {
|
||||
ok = false;
|
||||
} else {
|
||||
uChoices = tmp;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (ok) {
|
||||
browser.storage.local.set({
|
||||
'onion': (baseURL == BUonion ? 'y' : 'n')
|
||||
});
|
||||
browser.storage.local.set({
|
||||
'params': uChoices
|
||||
});
|
||||
return {
|
||||
redirectUrl: conf.replace('rq=%s', 'rq').replace('/?oo&rq', '/')
|
||||
};
|
||||
}
|
||||
}
|
||||
return {
|
||||
cancel: true
|
||||
};
|
||||
}, {
|
||||
urls: ['https://ombrelo.test/*']
|
||||
}, ['blocking']);
|
||||
browser.runtime.onMessage.addListener((r, s, sr) => {
|
||||
if (r && r[0] == 'onion') {
|
||||
browser.storage.local.set({
|
||||
'onion': (r[1] ? 'y' : 'n')
|
||||
});
|
||||
baseURL = (r[1]) ? BUonion : BUclear;
|
||||
}
|
||||
return;
|
||||
});
|
@ -1,21 +0,0 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Crimeflare <http://crimeflare.eu.org>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
@ -1,48 +0,0 @@
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
browser.storage.local.get(['ul']).then((r) => {
|
||||
fetch('i18n/' + (r.ul || 'eo') + '.json', {
|
||||
method: 'GET'
|
||||
}).then(j => j.json()).then(j => {
|
||||
document.querySelectorAll('span[transk]').forEach(x => {
|
||||
x.innerText = j[x.getAttribute('transk')];
|
||||
});
|
||||
});
|
||||
});
|
||||
document.getElementById('crs').addEventListener('click', () => {
|
||||
browser.storage.local.set({
|
||||
'g': 0
|
||||
});
|
||||
browser.storage.local.set({
|
||||
'b': 0
|
||||
});
|
||||
location.reload();
|
||||
});
|
||||
document.getElementById('sms').addEventListener('click', () => {
|
||||
document.getElementById('smsa').style.display = 'none';
|
||||
browser.storage.local.get(['g', 'b']).then(x => {
|
||||
let iY = x.g || 0,
|
||||
iN = x.b || 0,
|
||||
iT;
|
||||
iT = iY + iN;
|
||||
if (iT > 0) {
|
||||
document.getElementById('viry').innerText = iY + ' (' + (iY * 100 / iT).toFixed(1) + '%)';
|
||||
document.getElementById('virn').innerText = iN + ' (' + (iN * 100 / iT).toFixed(1) + '%)';
|
||||
document.getElementById('viro').innerText = iT;
|
||||
} else {
|
||||
document.getElementById('viry').innerText = 0;
|
||||
document.getElementById('virn').innerText = 0;
|
||||
document.getElementById('viro').innerText = 0;
|
||||
}
|
||||
document.getElementById('smsb').style.display = 'inline';
|
||||
});
|
||||
});
|
||||
document.getElementById('myul').addEventListener('change', () => {
|
||||
if (document.getElementById('myul').value != '') {
|
||||
browser.storage.local.set({
|
||||
'ul': document.getElementById('myul').value
|
||||
}).then(() => {
|
||||
location.reload(true);
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
@ -1,52 +0,0 @@
|
||||
if (document.body && ['ombrelo.x66j7jej74efeulffzy3hu3p4dtfruiwb3vv6ec7b5bxlkogxw5vnpid.onion', 'ombrelo.eu.org'].includes(location.hostname) && location.pathname == '/') {
|
||||
let iY = 0,
|
||||
iN = 0,
|
||||
iRUN = false;
|
||||
function update_stat() {
|
||||
let iTTL = document.querySelectorAll("div#box_result blockquote.seres[data-f^='/d']").length;
|
||||
let iNCF = document.querySelectorAll("div#box_result blockquote.seres[data-f^='/d']:not([data-f*='/mitm'])").length;
|
||||
let iICF = document.querySelectorAll("div#box_result blockquote.seres[data-f^='/d'][data-f*='/mitm']").length;
|
||||
if (iTTL > 0 && (iNCF + iICF) == iTTL) {
|
||||
iY += iNCF;
|
||||
browser.storage.local.set({
|
||||
'g': iY
|
||||
});
|
||||
iN += iICF;
|
||||
browser.storage.local.set({
|
||||
'b': iN
|
||||
});
|
||||
}
|
||||
if (iTTL > 0 && (iY > 0 || iN > 0) && document.querySelectorAll('div#box_extinfo span.sx_tx small').length > 0) {
|
||||
document.querySelector('div#box_extinfo span.sx_tx small').innerHTML = document.querySelector('div#box_extinfo span.sx_tx small').innerHTML + '<br> ⮩ MITM: <i><u>' + (iN * 100 / (iY + iN)).toFixed(1) + '</u></i>%';
|
||||
}
|
||||
}
|
||||
if (document.getElementById('box_result')) {
|
||||
browser.storage.local.get(['g', 'b']).then(x => {
|
||||
iY = x.g || 0;
|
||||
iN = x.b || 0;
|
||||
update_stat();
|
||||
if (document.getElementById('box_result')) {
|
||||
(new MutationObserver(i => {
|
||||
if (document.querySelectorAll('div#box_result blockquote.seres.nfobox').length == 1 && document.querySelectorAll('div#box_result blockquote.seres').length == 1) {
|
||||
iRUN = true;
|
||||
return;
|
||||
}
|
||||
if (document.querySelectorAll("div#box_result blockquote#empage").length > 0) {
|
||||
iRUN = false;
|
||||
return;
|
||||
}
|
||||
if (document.querySelectorAll("div#box_result blockquote.seres[data-f^='/d']").length == 0) {
|
||||
iRUN = false;
|
||||
return;
|
||||
}
|
||||
if (iRUN) {
|
||||
update_stat();
|
||||
}
|
||||
iRUN = false;
|
||||
})).observe(document.getElementById('box_result'), {
|
||||
childList: true
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
@ -9,7 +9,7 @@
|
||||
}
|
||||
},
|
||||
"version": "1.0.5",
|
||||
"update_link": "https://framagit.org/dCF/deCloudflare/-/raw/master/tool/ombrelo/stats/addon.xpi?b70a2a6c26920359c25c6353569ea8a94bfb316a1fb92407c33f7a61d4090f82",
|
||||
"update_link": "https://0xacab.org/my-privacy-dns/deCloudflare/-/raw/master/tool/ombrelo/stats.xpi",
|
||||
"update_hash": "sha256:b70a2a6c26920359c25c6353569ea8a94bfb316a1fb92407c33f7a61d4090f82"
|
||||
}
|
||||
]
|
||||
@ -23,7 +23,7 @@
|
||||
}
|
||||
},
|
||||
"version": "1.0.10",
|
||||
"update_link": "https://framagit.org/dCF/deCloudflare/-/raw/master/tool/ombrelo/design/addon.xpi?8666f6b356ee78140fc5c5400a7e02e6c73668ca109aa4d6fe9b694d761d04fc",
|
||||
"update_link": "https://0xacab.org/my-privacy-dns/deCloudflare/-/raw/master/tool/ombrelo/design.xpi",
|
||||
"update_hash": "sha256:8666f6b356ee78140fc5c5400a7e02e6c73668ca109aa4d6fe9b694d761d04fc"
|
||||
}
|
||||
]
|
||||
@ -37,7 +37,7 @@
|
||||
}
|
||||
},
|
||||
"version": "1.0.8",
|
||||
"update_link": "https://framagit.org/dCF/deCloudflare/-/raw/master/tool/ombrelo/search/addon.xpi?053847a0a408fc2d174a44632c56cc038e682b9f22bb1363c1e2df172f1dd067",
|
||||
"update_link": "https://0xacab.org/my-privacy-dns/deCloudflare/-/raw/master/tool/ombrelo/search.xpi",
|
||||
"update_hash": "sha256:053847a0a408fc2d174a44632c56cc038e682b9f22bb1363c1e2df172f1dd067"
|
||||
}
|
||||
]
|
||||
@ -51,10 +51,10 @@
|
||||
}
|
||||
},
|
||||
"version": "1.0.14",
|
||||
"update_link": "https://framagit.org/dCF/deCloudflare/-/raw/master/tool/ombrelo/bl/addon.xpi?06a8712ed028717eea041c778483d07ee1b664ff6d683b50d6e5489b1355e126",
|
||||
"update_link": "https://0xacab.org/my-privacy-dns/deCloudflare/-/raw/master/tool/ombrelo/bl.xpi",
|
||||
"update_hash": "sha256:06a8712ed028717eea041c778483d07ee1b664ff6d683b50d6e5489b1355e126"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user