{"action":"created","issue":{"url":"https://api.github.com/repos/JasonBarnabe/greasyfork/issues/390","labels_url":"https://api.github.com/repos/JasonBarnabe/greasyfork/issues/390/labels{/name}","comments_url":"https://api.github.com/repos/JasonBarnabe/greasyfork/issues/390/comments","events_url":"https://api.github.com/repos/JasonBarnabe/greasyfork/issues/390/events","html_url":"https://github.com/JasonBarnabe/greasyfork/issues/390","id":114339324,"number":390,"title":"Submitting bilingual script listing results in \"We're sorry, but something went wrong.\"","user":{"login":"ssokolow","id":46915,"avatar_url":"https://avatars.githubusercontent.com/u/46915?v=3","gravatar_id":"","url":"https://api.github.com/users/ssokolow","html_url":"https://github.com/ssokolow","followers_url":"https://api.github.com/users/ssokolow/followers","following_url":"https://api.github.com/users/ssokolow/following{/other_user}","gists_url":"https://api.github.com/users/ssokolow/gists{/gist_id}","starred_url":"https://api.github.com/users/ssokolow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssokolow/subscriptions","organizations_url":"https://api.github.com/users/ssokolow/orgs","repos_url":"https://api.github.com/users/ssokolow/repos","events_url":"https://api.github.com/users/ssokolow/events{/privacy}","received_events_url":"https://api.github.com/users/ssokolow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-30T19:28:15Z","updated_at":"2015-10-30T23:29:25Z","closed_at":null,"body":"Attempting to post the following script results in this generic error message:\r\n\r\n> We're sorry, but something went wrong.\r\n> If you are the application owner check the logs for more information.\r\n\r\n**What I submitted:**\r\n```js\r\n// ==UserScript==\r\n// @name:en        Fix PC Financial page title for KeePass2\r\n// @name:fr        Fixer le titre de la page PC Financial pour KeePass2\r\n// @namespace   ssokolow.com\r\n// @description:en Adds a page title if necessary to ensure external password managers can identify the page\r\n// @description:fr Ajouter un titre de page si necessaire pour être sur de gestionnaire de mots de passe externes fonctionneront\r\n// @include     https://www.txn.banking.pcfinancial.ca/ebm-resources/public/client/web/index.html*\r\n// @version     1\r\n// @grant       none\r\n// ==/UserScript==\r\n\r\nif (!document.title) {\r\n    document.title = \"President's Choice Financial\";\r\n}\r\n```\r\n\r\n**Script type:** Public user script \r\n**Redistribution:** Use my account default (allowed)\r\n**Locale:** English (en)\r\n```markdown\r\nAs of October 2015, President's Choice Financial has switched to a new login page which doesn't set a title. This prevents external password managers like KeePass2 from being able to match it for hotkey-based auto-type.\r\n\r\nThis script corrects that in a future-proof way by setting a page title if none is set.\r\n\r\nAs this script will run on your financial institution's website, I've made it as simple as absolutely possible (three lines, including closing curly brace, and no `@require`s) so anyone who knows how to install a Greasemonkey script should be able to audit it. \r\n\r\n**Please click the Code tab and verify the following before installation:**\r\n\r\n1. The `==UserScript==` block at the top contains no `@require` lines.\r\n2. The code consists of:\r\n   1. An `if` statement checking for `!document.title` (no document title)\r\n   2. A line to set `document.title`\r\n   3. A closing curly brace.\r\n```\r\n\r\n**Additional Info** Français (fr)\r\n```markdown\r\n(Pardon moi pour mon français pauvre, s'il vous plaït.)\r\n\r\nDepuis octobre 2015, President's Choice Financial utilisait une nouvelle page de connexion qui ne donne pas un titre. Cette modification empêche les gestionnaire de mots de passe externes de travaille automatiquement.\r\n\r\nCe userscript corrige le problème d'une manière évolutive en ajoutant un titre seulement si nécessaire.\r\n\r\nParce que ce userscript auront accès à votres information privées, je l'ai conçu pour etre facile à vérifier. (C'est court, simple, et il n'y a pas des lignes qui contiennent `@require`.)\r\n\r\n**S'il vous plaît, avant d'installer, cliquez sur l'onglet de code et vérifier que...**\r\n\r\n1. La section `==UserScript==` ne contient pas `@require`\r\n2. Les lignes qui ne commence pas par // sont:\r\n   1. Une ligne qui vérifie la présence d'un titre\r\n   2. Une ligne qui définit le titre\r\n   3. Une accolade fermante\r\n```"},"comment":{"url":"https://api.github.com/repos/JasonBarnabe/greasyfork/issues/comments/152673213","html_url":"https://github.com/JasonBarnabe/greasyfork/issues/390#issuecomment-152673213","issue_url":"https://api.github.com/repos/JasonBarnabe/greasyfork/issues/390","id":152673213,"user":{"login":"JasonBarnabe","id":583995,"avatar_url":"https://avatars.githubusercontent.com/u/583995?v=3","gravatar_id":"","url":"https://api.github.com/users/JasonBarnabe","html_url":"https://github.com/JasonBarnabe","followers_url":"https://api.github.com/users/JasonBarnabe/followers","following_url":"https://api.github.com/users/JasonBarnabe/following{/other_user}","gists_url":"https://api.github.com/users/JasonBarnabe/gists{/gist_id}","starred_url":"https://api.github.com/users/JasonBarnabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JasonBarnabe/subscriptions","organizations_url":"https://api.github.com/users/JasonBarnabe/orgs","repos_url":"https://api.github.com/users/JasonBarnabe/repos","events_url":"https://api.github.com/users/JasonBarnabe/events{/privacy}","received_events_url":"https://api.github.com/users/JasonBarnabe/received_events","type":"User","site_admin":false},"created_at":"2015-10-30T23:29:25Z","updated_at":"2015-10-30T23:29:25Z","body":"The problem is that you're missing a non-localized `@name`. You should have one that matches the locale you choose. I've fixed the site to not bomb when this happens."}}