Compare commits
2 Commits
2021.08.28
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 9f277a45f3 | |||
| fb1ed4145e |
+31
-2
@@ -24,7 +24,7 @@ JWConfZoomHand
|
||||
var JWConfRaisings = 0;
|
||||
|
||||
// loop through table of attendees and call for observer subscription
|
||||
function subscribeNewAttendees() {
|
||||
/* function subscribeNewAttendees() {
|
||||
if (signalEnabled === false) {
|
||||
return;
|
||||
}
|
||||
@@ -35,10 +35,39 @@ JWConfZoomHand
|
||||
addObserver(row);
|
||||
}
|
||||
}
|
||||
} */
|
||||
|
||||
function subscribeNewAttendees() {
|
||||
if (signalEnabled === false) {
|
||||
return;
|
||||
}
|
||||
var tablesAttendees = document.evaluate('//table[starts-with(@class,"listener-table")]', document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null );
|
||||
var tableAttendees = null;
|
||||
for ( var i=0; i < tablesAttendees.snapshotLength; i++ )
|
||||
{
|
||||
tableAttendees = tablesAttendees.snapshotItem(i)
|
||||
for (var i = 0, row; row = tableAttendees.rows[i]; i++) {
|
||||
if (row.parentNode.localName !== "thead") {
|
||||
addObserver(row);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
wegen unten XPathResult.ORDERED_NODE_ITERATOR_TYPE durch XPathResult.ORDERED_NODE_SNAPSHOT_TYPE ersetzt (
|
||||
|
||||
siehe https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate
|
||||
Results of NODE_SNAPSHOT types are snapshots, which are essentially lists of matched nodes. You can make changes to the document by altering snapshot nodes. Modifying the document doesn't invalidate the snapshot; however, if the document is changed, the snapshot may not correspond to the current state of the document, since nodes may have moved, been changed, added, or removed.
|
||||
|
||||
führt leider manchmal zu
|
||||
jwconfsignal.js:46 Uncaught DOMException: Failed to execute 'iterateNext' on 'XPathResult': The document has mutated since the result was returned.
|
||||
at subscribeNewAttendees (chrome-extension://hhcadpapjmemfpokloljohmahipbjhmb/jwconfsignal.js:46:42)
|
||||
at chrome-extension://hhcadpapjmemfpokloljohmahipbjhmb/jwconfsignal.js:250:4 */
|
||||
|
||||
function updateJWConfRaisings() {
|
||||
JWConfRaisings = document.evaluate('count(//table[@class="listener-table"]//tr[@class="detected speechrequest"])', document, null, XPathResult.ANY_TYPE, null ).numberValue;
|
||||
//JWConfRaisings = document.evaluate('count(//table[starts-with(@class,"listener-table")]//tr[@class="speechrequest detected"])', document, null, XPathResult.ANY_TYPE, null ).numberValue;
|
||||
JWConfRaisings = document.evaluate('count(//table[starts-with(@class,"listener-table")]//tr[@class="detected speechrequest" or @class="speechrequest detected" or @style="background-color: rgb(23, 121, 186); color: rgb(254, 254, 254);" or @style="background-color: rgb(161, 184, 105); color: rgb(254, 254, 254);"])', document, null, XPathResult.ANY_TYPE, null ).numberValue;
|
||||
}
|
||||
|
||||
function subscribeAttList() {
|
||||
|
||||
+29
-19
@@ -1,36 +1,46 @@
|
||||
{
|
||||
// Extension ID: hhcadpapjmemfpokloljohmahipbjhmb
|
||||
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtXRV6Vq2HTR6M1ryxP+8c4EvfCNo1K7SY8rkpBAdvZfDuxPB89Tkkm282/pkyl0ppmTyCpYO3bIXPKuDSg5TZfAItfXF2VgoMVUjXwiWy6qSiAkdaoHyNLuQqCcexqNvvqnKgfvkiZBK3HPNJzZFpx9BMFvSoG4RQz7GjYGjqzu95LW6tmI0HAMDKzHihdZ6d6oCgov/yJXIYyUBUSz+uVYpLM2xHRaOxU76AS896RzUNZEV5CUvioclqrmqQDp4gB7NJ2tDODil11T2yE4cVuIz9z/X3eZ7Y1mBmfHK1WnnFb+N5PMu/n1fA6re0bqAg6rT8gZNdeXlcAlytts4nwIDAQAB",
|
||||
"name":"jwconfzoomhand",
|
||||
"short_name":"JWConfZoomHand",
|
||||
"version":"2021.08.28",
|
||||
"manifest_version":2,
|
||||
"name": "jwconfzoomhand",
|
||||
"short_name": "JWConfZoomHand",
|
||||
"version": "2023.01.14",
|
||||
"manifest_version": 3,
|
||||
"default_locale": "de",
|
||||
"description":"-",
|
||||
"web_accessible_resources" : ["/jscolor.js", "/checkMark.png"],
|
||||
"description": "-",
|
||||
"web_accessible_resources": [
|
||||
{
|
||||
"resources": [
|
||||
"/jscolor.js",
|
||||
"/checkMark.png"
|
||||
],
|
||||
"matches": [
|
||||
"https://jwconf.org/*"
|
||||
]
|
||||
}
|
||||
],
|
||||
"icons": {
|
||||
"128": "icon_128px.png",
|
||||
"48": "icon_48px.png"
|
||||
"48": "icon_48px.png"
|
||||
},
|
||||
"background": {
|
||||
"scripts": ["background.js"],
|
||||
"persistent": true
|
||||
},
|
||||
"browser_action": {
|
||||
"default_icon": "icon_48px.png"
|
||||
"background": {
|
||||
"service_worker": "background.js"
|
||||
},
|
||||
"content_scripts": [
|
||||
{
|
||||
"matches": ["*://jwconf.org/*"],
|
||||
"js": ["/jquery.min.js", "content.js", "/jwconfsignal.js"],
|
||||
"matches": [
|
||||
"*://jwconf.org/*"
|
||||
],
|
||||
"js": [
|
||||
"/jquery.min.js",
|
||||
"content.js",
|
||||
"/jwconfsignal.js"
|
||||
],
|
||||
"run_at": "document_end"
|
||||
}
|
||||
],
|
||||
|
||||
"permissions":[
|
||||
"permissions": [
|
||||
"activeTab",
|
||||
"nativeMessaging"
|
||||
],
|
||||
"homepage_url": "http://jwconfzoomhand.local"
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user