Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.07 KB | None | 0 0
  1. --- chrome/content/aima_aimani.jsm.orig 2019-11-21 01:45:04.000000000 +0900
  2. +++ chrome/content/aima_aimani.jsm  2019-11-21 01:45:33.000000000 +0900
  3. @@ -5498,6 +5498,28 @@
  4.            ngword_ip = RegExp.$1;
  5.          }
  6.        }
  7. +      else if (node.nodeName.toLowerCase () == "span") {
  8. +        if (num == 0
  9. +            && node.className == "cno"
  10. +           && node.textContent.match (/No\.([0-9]+)/)) {
  11. +          /* スレ番号、レス番号の場合 */
  12. +          num = parseInt (RegExp.$1);
  13. +                    
  14. +          noNode = node;
  15. +        }
  16. +                
  17. +        if (node.className == "cnw"
  18. +            && node.textContent.match (/ID:([^ ]+)/)) {
  19. +          /* ID の場合 */
  20. +          ngword_id = RegExp.$1;
  21. +        }
  22. +                
  23. +        if (node.className == "cnw"
  24. +            && node.textContent.match (/IP:([^ ]+)/)) {
  25. +          /* IP アドレス の場合 */
  26. +          ngword_ip = RegExp.$1;
  27. +        }
  28. +      }
  29.        else if (node.nodeName.toLowerCase () == "a") {
  30.          var href;
  31.          href = node.getAttribute ("href");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement