Add Javascript Weblabels for search (#798)

This commit makes based.cooking's search compatible with GNU LibreJS

Co-authored-by: Arya Kiran <aryak@vern.cc>
pull/799/head^2
Arya K 2 years ago committed by GitHub
parent fd8733ca24
commit c194763386
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -13,6 +13,8 @@ description: 'The fast-loading recipe site with cooking only and no ads.'
</div>
<script>
// @license magnet:?xt=urn:btih:5ac446d35272cc2e4e85e4325b146d0b7ca8f50c&dn=unlicense.txt Unlicense
document.addEventListener('DOMContentLoaded', () => {
for (e of document.getElementsByClassName("js-only")) {
e.classList.remove("js-only")
@ -54,6 +56,7 @@ document.addEventListener('DOMContentLoaded', () => {
artlist.classList.remove('list-searched') ;
})
})
// @license-end
</script>
{{< artlist >}}

Loading…
Cancel
Save