{"action":"created","issue":{"url":"https://api.github.com/repos/TimidScript/UserScripts/issues/7","repository_url":"https://api.github.com/repos/TimidScript/UserScripts","labels_url":"https://api.github.com/repos/TimidScript/UserScripts/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/TimidScript/UserScripts/issues/7/comments","events_url":"https://api.github.com/repos/TimidScript/UserScripts/issues/7/events","html_url":"https://github.com/TimidScript/UserScripts/issues/7","id":146696896,"number":7,"title":"Linx Amender: Title rules run many times","user":{"login":"igorepst","id":1630792,"avatar_url":"https://avatars.githubusercontent.com/u/1630792?v=3","gravatar_id":"","url":"https://api.github.com/users/igorepst","html_url":"https://github.com/igorepst","followers_url":"https://api.github.com/users/igorepst/followers","following_url":"https://api.github.com/users/igorepst/following{/other_user}","gists_url":"https://api.github.com/users/igorepst/gists{/gist_id}","starred_url":"https://api.github.com/users/igorepst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igorepst/subscriptions","organizations_url":"https://api.github.com/users/igorepst/orgs","repos_url":"https://api.github.com/users/igorepst/repos","events_url":"https://api.github.com/users/igorepst/events{/privacy}","received_events_url":"https://api.github.com/users/igorepst/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-07T17:46:34Z","updated_at":"2016-04-10T11:43:26Z","closed_at":null,"body":"Hello, TimidScript. I'm duplicating this bug here, as OpenUserJS is down.\r\nI'm trying to use title rule `@2^(.*): (.*)$` with replacement `$2: Xah Emacs Lisp` for `^http://ergoemacs\\.org/emacs/*`, for ex. on [this page](http://ergoemacs.org/emacs/dired_sort.html). The result is that the title is changed for a moment to the right one, and then to \"Xah Emacs Lisp: Xah Emacs Lisp\". In the console (after adding logging) I see that the function `amendPageTitle(rules)` is called like 4 times. Could you, please, take a look?\r\nThanks"},"comment":{"url":"https://api.github.com/repos/TimidScript/UserScripts/issues/comments/207968721","html_url":"https://github.com/TimidScript/UserScripts/issues/7#issuecomment-207968721","issue_url":"https://api.github.com/repos/TimidScript/UserScripts/issues/7","id":207968721,"user":{"login":"TimidScript","id":8114076,"avatar_url":"https://avatars.githubusercontent.com/u/8114076?v=3","gravatar_id":"","url":"https://api.github.com/users/TimidScript","html_url":"https://github.com/TimidScript","followers_url":"https://api.github.com/users/TimidScript/followers","following_url":"https://api.github.com/users/TimidScript/following{/other_user}","gists_url":"https://api.github.com/users/TimidScript/gists{/gist_id}","starred_url":"https://api.github.com/users/TimidScript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimidScript/subscriptions","organizations_url":"https://api.github.com/users/TimidScript/orgs","repos_url":"https://api.github.com/users/TimidScript/repos","events_url":"https://api.github.com/users/TimidScript/events{/privacy}","received_events_url":"https://api.github.com/users/TimidScript/received_events","type":"User","site_admin":false},"created_at":"2016-04-10T11:43:26Z","updated_at":"2016-04-10T11:43:26Z","body":"I really do not know what to say, because I can reproduce it now. Just test it in LA4 beta and it works fine.\r\n\r\nCan you please use this temporary fix. Just copy and paste the rule in LA.\r\n\r\n`{\"id\":\"L1459844981456\",\"name\":\"Emacs\",\"URLs\":\"@ergoemacs.org\",\"sampleURL\":\"http://ergoemacs.org/emacs/emacs_org_markup.html\",\"nthNode\":\"0\",\"type\":2,\"selectors\":\"a\",\"regexes\":[{\"search\":\"@2^.*: (.*)$\",\"replace\":\"$1\"},{\"search\":\"(.+)\",\"replace\":\"$1:Xah Emacs Lisp\"}],\"enabled\":true,\"timestamp\":1460288526565}`\r\n\r\n"}}