Benjamin_Loison commented on issue Benjamin_Loison/overleaf#40 2025-03-25 18:19:20 +01:00
Notify on completed compilation
JavaScript code:
function getElementByXpath(path) {
	return document.evaluate(path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singl
Benjamin_Loison commented on issue Benjamin_Loison/overleaf#40 2025-03-25 17:46:09 +01:00
Notify on completed compilation
new Date().toLocaleString()
"25/03/2025, 17:45:58" 
Benjamin_Loison commented on issue Benjamin_Loison/overleaf#40 2025-03-25 17:44:54 +01:00
Notify on completed compilation
const d = new Date();
let time = d.getTime();

gives milliseconds.

Benjamin_Loison commented on issue Benjamin_Loison/overleaf#40 2025-03-25 17:42:44 +01:00
Notify on completed compilation

Attribute watching may help.

Benjamin_Loison commented on issue Benjamin_Loison/overleaf#40 2025-03-25 17:23:22 +01:00
Notify on completed compilation
JavaScript code:
function getElementByXpath(path) {
	return document.evaluate(path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singl
Benjamin_Loison commented on issue Benjamin_Loison/overleaf#40 2025-03-25 17:19:28 +01:00
Notify on completed compilation

No iframe seems to blame as I get correctly the node.

Benjamin_Loison commented on issue Benjamin_Loison/overleaf#40 2025-03-25 17:19:00 +01:00
Notify on completed compilation
JavaScript code:
var element = document.getElementById('recompile');

var MutationObserver = window.MutationObserver 
Benjamin_Loison commented on issue Benjamin_Loison/overleaf#40 2025-03-25 17:17:52 +01:00
Notify on completed compilation
element.innerHTML 

works fine, maybe it acts as pointer to a copy somehow.

Benjamin_Loison commented on issue Benjamin_Loison/overleaf#40 2025-03-25 17:17:02 +01:00
Notify on completed compilation
JavaScript code:
function getElementByXpath(path) {
  return document.evaluate(path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE,
Benjamin_Loison commented on issue Benjamin_Loison/overleaf#40 2025-03-25 17:14:43 +01:00
Notify on completed compilation

I suspect running my Console code after window.addEventListener('load' can be triggered.

Benjamin_Loison commented on issue Benjamin_Loison/overleaf#40 2025-03-25 17:13:49 +01:00
Notify on completed compilation

Run code snippet works fine.

Benjamin_Loison commented on issue Benjamin_Loison/overleaf#40 2025-03-25 17:13:37 +01:00
Notify on completed compilation

At random it will be fed with data from an external source (that I do not have control of).

So maybe it does match my needs, as it may be HTML nodes, not just text.

Well the mentioned…

Benjamin_Loison commented on issue Benjamin_Loison/overleaf#40 2025-03-25 17:08:22 +01:00
Notify on completed compilation
JavaScript code:
function getElementByXpath(path) {
  return document.evaluate(path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE,
Benjamin_Loison commented on issue Benjamin_Loison/overleaf#40 2025-03-25 17:06:52 +01:00
Notify on completed compilation
<span class="btn-recompile-label" ng-show="!pdf.compiling">Recompiler</span>
<span class="btn-recompile-label" ng-show="pdf.compiling">Compilation en cours…</span>
Benjamin_Loison commented on issue Benjamin_Loison/overleaf#40 2025-03-25 17:02:30 +01:00
Notify on completed compilation

DuckDuckGo search JavaScript run function when node changed.

Benjamin_Loison commented on issue Benjamin_Loison/overleaf#40 2025-03-25 17:01:47 +01:00
Notify on completed compilation

image.png

Benjamin_Loison commented on issue Benjamin_Loison/overleaf#40 2025-03-25 16:43:47 +01:00
Notify on completed compilation
Notification.requestPermission().then((result) => {
  console.log(result);
});
Promise { <state>: "pending" }
The Notification permission may only be requested from…
Benjamin_Loison commented on issue Benjamin_Loison/codeberg#10 2025-03-25 00:40:04 +01:00
*Credentials are incorrect or have expired.*

Problem solved.

Benjamin_Loison closed issue Benjamin_Loison/codeberg#10 2025-03-25 00:40:04 +01:00
*Credentials are incorrect or have expired.*