# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/liferea/hotfix-user-js.patch # Copyright (C) 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- The release tarball lacks js/user.js listed in js/gresource.xml, from the v1.16.14 tag. --- liferea-1.16.14.orig/js/user.js +++ liferea-1.16.14/js/user.js @@ -0,0 +1,24 @@ +// This is a JS hook that allows you to hack the Liferea rendering +// +// It is invoked by the htmlview.js rendering scripting and provides you +// with hooks one to modify the data before rendering and one to modify +// or enhance the rendering after it is done. + +// hooks to modify item info rendering + +window.hookPreItemRendering = (data) => { + return data; +}; +window.hookPostItemRendering = () => { + // Modify DOM as you like +}; + +// hooks to modify node info rendering + +window.hookPreNodeRendering = (data) => { + return data; + +}; +window.hookPostNodeRendering = () => { + // Modify DOM as you like +}; \ No newline at end of file