{"action":"created","issue":{"url":"https://api.github.com/repos/schomery/youtube-hover/issues/8","repository_url":"https://api.github.com/repos/schomery/youtube-hover","labels_url":"https://api.github.com/repos/schomery/youtube-hover/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/schomery/youtube-hover/issues/8/comments","events_url":"https://api.github.com/repos/schomery/youtube-hover/issues/8/events","html_url":"https://github.com/schomery/youtube-hover/issues/8","id":197505123,"number":8,"title":"Link parsing issues.","user":{"login":"narcolepticinsomniac","id":14100003,"avatar_url":"https://avatars.githubusercontent.com/u/14100003?v=3","gravatar_id":"","url":"https://api.github.com/users/narcolepticinsomniac","html_url":"https://github.com/narcolepticinsomniac","followers_url":"https://api.github.com/users/narcolepticinsomniac/followers","following_url":"https://api.github.com/users/narcolepticinsomniac/following{/other_user}","gists_url":"https://api.github.com/users/narcolepticinsomniac/gists{/gist_id}","starred_url":"https://api.github.com/users/narcolepticinsomniac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/narcolepticinsomniac/subscriptions","organizations_url":"https://api.github.com/users/narcolepticinsomniac/orgs","repos_url":"https://api.github.com/users/narcolepticinsomniac/repos","events_url":"https://api.github.com/users/narcolepticinsomniac/events{/privacy}","received_events_url":"https://api.github.com/users/narcolepticinsomniac/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-25T15:22:50Z","updated_at":"2016-12-25T15:27:54Z","closed_at":null,"body":"I've run into it a handful of times, where random links fail. One time there were a few right next to each other and only one didn't work. When I reloaded the page, it worked. \r\n\r\nIt also craps out after a while with infinite scrolling. Using RES on reddit, around comment 300, on \"page 10\" of the infinite scroll, it stopped working altogether.\r\n\r\nI think Chrome (maybe FF as well) has issues with document start. The Tampermonkey dev has been lobbying for a resolution to earlier script injection. Not sure if that is the culprit here or not. Anyway, I was having issues with a script not too far back and a friend fixed it by running a \"double check\" with the mutation handler. It's the same one I posted in a previous issue. I'm not good with javascript, but I can tell you this method is fast and doesn't miss.\r\n\r\n```\r\n// ==UserScript==//\r\n// @name        Test\r\n// @version     1.0\r\n// @include     [link removed]/*\r\n// @run-at      document-start\r\n// @require     https://greasyfork.org/scripts/12228/code/setMutationHandler.js\r\n// ==/UserScript==\r\n\r\n// process the already loaded portion of the page\r\nprocess(document.querySelectorAll(\r\n    'a'\r\n));\r\n\r\n// process the stuff loaded from now on\r\nsetMutationHandler(\r\n    document,\r\n    'a',\r\n    process\r\n);\r\n\r\nfunction process(nodes) {\r\n    for (var i=0, n; (n=nodes[i++]); ) {\r\n        if (n.textContent.match(/wacka-wacka/i)) {\r\n            (n.closest('.item') || n.parentNode).remove();\r\n        }\r\n    }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/schomery/youtube-hover/issues/comments/269127152","html_url":"https://github.com/schomery/youtube-hover/issues/8#issuecomment-269127152","issue_url":"https://api.github.com/repos/schomery/youtube-hover/issues/8","id":269127152,"user":{"login":"narcolepticinsomniac","id":14100003,"avatar_url":"https://avatars.githubusercontent.com/u/14100003?v=3","gravatar_id":"","url":"https://api.github.com/users/narcolepticinsomniac","html_url":"https://github.com/narcolepticinsomniac","followers_url":"https://api.github.com/users/narcolepticinsomniac/followers","following_url":"https://api.github.com/users/narcolepticinsomniac/following{/other_user}","gists_url":"https://api.github.com/users/narcolepticinsomniac/gists{/gist_id}","starred_url":"https://api.github.com/users/narcolepticinsomniac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/narcolepticinsomniac/subscriptions","organizations_url":"https://api.github.com/users/narcolepticinsomniac/orgs","repos_url":"https://api.github.com/users/narcolepticinsomniac/repos","events_url":"https://api.github.com/users/narcolepticinsomniac/events{/privacy}","received_events_url":"https://api.github.com/users/narcolepticinsomniac/received_events","type":"User","site_admin":false},"created_at":"2016-12-25T15:27:54Z","updated_at":"2016-12-25T15:27:54Z","body":"Happy holidays, btw."}}
{"actor":{"display_login":"narcolepticinsomniac"}}