Skip to content

Instantly share code, notes, and snippets.

View d3n972's full-sized avatar
🏠
Working from home

Mark Adonyi d3n972

🏠
Working from home
  • Kecskemét, Hungary
View GitHub Profile
@d3n972
d3n972 / t.class.js
Created November 11, 2020 18:50
t.js as a class
class t {
blockregex = /\{\{(([@!]?)(.+?))\}\}(([\s\S]+?)(\{\{:\1\}\}([\s\S]+?))?)\{\{\/\1\}\}/g;
valregex = /\{\{([=%])(.+?)\}\}/g;
constructor(template) {
this._t = template;
}
scrub(val) {
return val.replace(/"/g, """);
}
/* ==UserStyle==
@name 24.hu - Dark
@namespace github.com/d3n972/styles
@version 1.0.6
@description Opinioned 24.hu dark theme
@author d3n972
@
==/UserStyle== */
@-moz-document url-prefix("https://24.hu/") {
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&display=swap');