You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. function m1_init(){
  2. clog("M1 INIT")
  3. muo()
  4. }
  5. function mo_cb(){
  6. clog("mutate",arguments,this)
  7. mdev()
  8. }
  9. function muo(){
  10. glob_u.rrefs.obs = glob_u.rrefs.obs || {}
  11. if (!glob_u?.rrefs?.obs?.m){
  12. m=new MutationObserver(mo_cb)
  13. glob_u.rrefs.obs.m=m
  14. }
  15. glob_u.rrefs.obs.m.observe(document.querySelector(".max-w-narrow>div"),{childList:true})
  16. }
  17. function ev_proc(argument) {
  18. var j
  19. var m = new Map()
  20. for (n of $(".max-w-narrow>div>div")){
  21. j=$(n)
  22. let tx = j.find("time")
  23. // let tx = j.find("a")
  24. var k
  25. var arr= []
  26. for (k of tx){
  27. arr.push(k.href)
  28. }
  29. clog(tx.length,arr,n,tx)
  30. // clog(j,tx)
  31. // m.setD()
  32. glob_u.fns.inc_map(m,tx.length)
  33. }
  34. return m
  35. // body...
  36. }
  37. // glob_u.rrefs.obs.m.observe(document.querySelector(".max-w-narrow>div"),{childList:true})
  38. // glob_u.rrefs.obs.m.observe(document.querySelector(".max-w-narrow>div"))
  39. // addEventListener("load",m1_init)
  40. clog("M1~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
  41. window.on_jsync_lib_load.push(m1_init)
  42. muo()