added site files

This commit is contained in:
gribse 2025-05-16 18:49:08 +02:00
parent a6f70a6c78
commit 329148c253
253 changed files with 30486 additions and 0 deletions

View file

@ -0,0 +1,58 @@
/*
---
description: Filters the RAW Code from given pre tags
license: MIT-style
authors:
- Andi Dittrich
requires:
- Core/1.4.5
provides: [EnlighterJS.TextFilter]
...
*/
EJS.TextFilter = new Class({
Implements: Options,
options: {
cryptex: {
enabled: false,
email: 'protected.email@example.tld'
}
},
initialize: function (options) {
this.setOptions(options);
},
/**
* Apply Filter to text fragments output)
* @param textFragment
*/
filterOutput: function(textFragment){
return textFragment;
},
/**
* Apply filter to the input chain (text block)
* @param text
* @returns {*}
*/
filterInput: function(text){
// apply cryptex email address filter ?
if (this.options.cryptex.enabled===true){
text = text.replace(/<!--CTX!--><span (rel="([a-f0-9]+)")?[\s\S]*?<!--\/CTX!-->/gim, function(match, m1, m2, offset, string){
if (m2 && m2.length>2 && typeof window.Cryptex != 'undefined') {
return window.Cryptex.decode(m2);
}else{
return this.options.cryptex.email;
}
}.bind(this));
}
return text;
}
});