Update 3 files

- /tool/userscripts/dcf.us.remove.js
- /tool/userscripts/dcf.us.color.js
- /tool/userscripts/README.md
This commit is contained in:
Matt 2023-12-14 05:38:47 +00:00
parent 2b05c0372d
commit 313746f694
3 changed files with 46 additions and 4 deletions

View File

@ -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

View 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);
})();

View 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);
})();