{"id":16473183,"url":"https://github.com/binki/binki-microsoft-word-document-title","last_synced_at":"2026-06-16T09:32:15.822Z","repository":{"id":38279369,"uuid":"469570229","full_name":"binki/binki-microsoft-word-document-title","owner":"binki","description":"Fix WOPI Word editor to set document title to improve usability","archived":false,"fork":false,"pushed_at":"2022-06-24T13:11:21.000Z","size":16,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T12:43:08.544Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/binki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-14T03:42:01.000Z","updated_at":"2022-03-14T03:42:28.000Z","dependencies_parsed_at":"2022-08-18T17:10:12.123Z","dependency_job_id":null,"html_url":"https://github.com/binki/binki-microsoft-word-document-title","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/binki/binki-microsoft-word-document-title","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binki%2Fbinki-microsoft-word-document-title","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binki%2Fbinki-microsoft-word-document-title/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binki%2Fbinki-microsoft-word-document-title/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binki%2Fbinki-microsoft-word-document-title/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binki","download_url":"https://codeload.github.com/binki/binki-microsoft-word-document-title/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binki%2Fbinki-microsoft-word-document-title/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34400451,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T12:25:39.053Z","updated_at":"2026-06-16T09:32:15.808Z","avatar_url":"https://github.com/binki.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Update the browser’s title to match the Microsoft Word document’s title.\n\n## Problem\n\nWhen editing files in Microsoft Word Online using one’s [personal OneDrive](https://onedrive.live.com/) or [business OneDrive](https://office.live.com/start/OneDrive.aspx), Word updates the browser’s title to match the document:\n\n![Editing “Example Word Document.docx”.](https://i.imgur.com/C6jeCTt.png)\n\nThis way, you can search for the document by name in your address bar:\n\n![Typing “example word” into the address bar.](https://i.imgur.com/0nSyjan.png)\n\nHowever, if you launched a Microsoft Word document through the [special WOPI protocol](https://docs.microsoft.com/en-us/microsoft-365/cloud-storage-partner-program/online/), Word does not do this.\nFor example, a document named “Another Example.docx” just has a document title of “Word”:\n\n![Editing “Another Example.docx” opened via ShareFile](https://i.imgur.com/BVzFMrg.png)\n\nThis makes searching for the document nearly impossible. For example, I have no results in my address bar:\n\n![Typing “another example” into the address bar.](https://i.imgur.com/erk5Z3r.png)\n\n## Solution\n\nThis user script detects this situation and monitors the document’s title shown in the in-page blue header and copies the text to the document’s title.\nThis updates the displayed value shown by the browser, making the tab searchable.\n\nHowever, this does not solve the problem completely.\nEvery time you visit this document on a synced Firefox instance, Firefox will update the document title for that URI to the latest one it saw.\nSo if you launch the document via Firefox for Android, which cannot run user scripts, you will overwrite the document’s history entry title to just be “Word”.\nTo mitigate this issue, this script transparently adds an `x-title` GET parameter to the URI of the document.\nThis provides two functionalities.\nDuring future loads of the document, the document’s title can be updated immediately upon navigating to the document—even before the document loads enough to populate the header within the document with the title and even if there is an issue with loading the document itself.\nAlso, the address bar search can match the document title keywords in the URI itself, mitigating the fact that the title may have been overwritten by a device participating in Firefox Sync that does not have this userscript installed.\n\n## Installation\n\n[Install](binki-microsoft-word-document-title.user.js?raw=1)\n\n## See Also\n\n* [binki-sharefile-microsoft-word-recovery](https://github.com/binki/binki-sharefile-microsoft-word-recovery): Enable direct navigation to the WOPI editor for Word documents stored in ShareFile, recovering from the “Sorry, we ran into a problem.”. This is likely necessary if you using ShareFile and search for documents by title.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinki%2Fbinki-microsoft-word-document-title","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinki%2Fbinki-microsoft-word-document-title","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinki%2Fbinki-microsoft-word-document-title/lists"}