mirror of
https://0xacab.org/dCF/deCloudflare.git
synced 2025-01-15 11:46:56 -05:00
Update 3 files
- /tool/userscripts/dcf.us.remove.js - /tool/userscripts/dcf.us.color.js - /tool/userscripts/README.md
This commit is contained in:
parent
2b05c0372d
commit
313746f694
@ -1,11 +1,11 @@
|
||||
# UserScript
|
||||
|
||||
If your browser cannot install an add-on but has UserScript functionality, you can use the following UserScript to address the issue of Cloudflare links hiding in every website you visit.
|
||||
If your browser cannot install an add-on but has [UserScript](https://en.wikipedia.org/wiki/Userscript) functionality, you can use the following UserScript to address the issue of Cloudflare links hiding in every website you visit.
|
||||
This script can help you gain similar power to identify and take action against those links.
|
||||
However, keep in mind that there may be some limitations due to your browser's restrictions.
|
||||
If you can use "[Are links vulnerable to MITM attack?](../../subfiles/addon/ismm.md)" add-on, it is **recommended** to use it instead of the script for better protection and performance.
|
||||
|
||||
- The UserScript
|
||||
- [Remove CF link](dcf.us.remove.js)
|
||||
- [Color CF link](dcf.us.color.js)
|
||||
- The UserScript (use EITHER, not both)
|
||||
- [Remove CF link](dcf.us.remove.js); remove the link
|
||||
- [Color CF link](dcf.us.color.js); mark the link
|
||||
|
||||
|
21
tool/userscripts/dcf.us.color.js
Normal file
21
tool/userscripts/dcf.us.color.js
Normal file
@ -0,0 +1,21 @@
|
||||
// ==UserScript==
|
||||
// @name Mark CloudFlare links
|
||||
// @author Matthew L. Tanner
|
||||
// @match https://*/*
|
||||
// @version 1.0.0.0
|
||||
// @grant none
|
||||
// @run-at document-end
|
||||
// ==/UserScript==
|
||||
// this script will not run on those sites
|
||||
// e.g. ['www.youtube.com','www.google.com']
|
||||
let DONT_RUN_FQDNS = [];
|
||||
//-----
|
||||
(function () {
|
||||
let lh = location.hostname;
|
||||
if (DONT_RUN_FQDNS.includes(lh) || /\.crimeflare\.eu\.org$/.test(lh)) {
|
||||
return;
|
||||
}
|
||||
let script = document.createElement('script');
|
||||
script.src = 'https://karma.crimeflare.eu.org/api/is/cloudflare/script/?type=color';
|
||||
document.head.appendChild(script);
|
||||
})();
|
21
tool/userscripts/dcf.us.remove.js
Normal file
21
tool/userscripts/dcf.us.remove.js
Normal file
@ -0,0 +1,21 @@
|
||||
// ==UserScript==
|
||||
// @name Remove CloudFlare links
|
||||
// @author Matthew L. Tanner
|
||||
// @match https://*/*
|
||||
// @version 1.0.0.0
|
||||
// @grant none
|
||||
// @run-at document-end
|
||||
// ==/UserScript==
|
||||
// this script will not run on those sites
|
||||
// e.g. ['www.youtube.com','www.google.com']
|
||||
let DONT_RUN_FQDNS = [];
|
||||
//-----
|
||||
(function () {
|
||||
let lh = location.hostname;
|
||||
if (DONT_RUN_FQDNS.includes(lh) || /\.crimeflare\.eu\.org$/.test(lh)) {
|
||||
return;
|
||||
}
|
||||
let script = document.createElement('script');
|
||||
script.src = 'https://karma.crimeflare.eu.org/api/is/cloudflare/script/?type=remove';
|
||||
document.head.appendChild(script);
|
||||
})();
|
Loading…
Reference in New Issue
Block a user