Repository navigation
Extension 1.1.0: any career page, Platsbanken company name, LinkedIn navigation - #194
Merged
Merged
Conversation
…, tabs open before install - Platsbanken: the company was never read. The page's element is #pb-company-name and there is no JSON-LD; it is now read from there, with the 'Title - Employer - Platsbanken' document title as a fallback. - LinkedIn is a single-page app: arriving at a job from the feed loads no new document, so a script limited to /jobs/* was never there to answer. The script now matches all of www.linkedin.com and only marks listings under /jobs. - The popup and the shortcut load the site script on demand into a tab that has none (one open before the extension was installed or updated), on the supported sites only. Needs the 'scripting' permission. - Site scripts guard against running twice.
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
A generic page script reads career sites that have no script of their own. It is not in the manifest: the popup and the shortcut load it into the active tab when the user invokes the extension there (activeTab), so it runs on no page the user has not pointed the extension at. A page counts as a job when it carries schema.org JobPosting data, is on a known applicant-tracking host, or has a job-like path. Structured data is preferred over anything read from the page layout. The privacy policy and the store listing said the extension reads no other website; both now describe the on-click reading.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was wrong
#pb-company-name, which was not among the selectors, and Platsbanken embeds no JSON-LD to fall back on.https://www.linkedin.com/jobs/*. LinkedIn is a single-page app, so arriving at a job from the feed or a notification loads no new document, and the script was never there for the popup to ask.What changes (version 1.1.0)
content/generic.js) reads sites that have no script of their own. It is not in the manifest. The popup and the keyboard shortcut load it into the active tab when the user invokes the extension there (activeTab), so it runs on no page the user has not pointed the extension at.JobPostingdata, is on a known applicant-tracking host (Teamtailor, Greenhouse, Lever, Workday and others), or has a job-like path.#pb-company-name; falls back to the document title ("Job title - Employer - Platsbanken").www.linkedin.com(already covered by the existing host permission). It only reads a job when the URL is a job, and only marks listings under/jobs.scripting).Privacy and store text
The privacy policy (section 5) and
store/STORE_LISTING.mdsaid the extension reads no other website. Both now say: on other sites it reads only the page the user clicks the icon (or uses the shortcut) on, at that moment. The two new permissions,activeTabandscripting, show no install warning; their justifications are in the store listing file. The manifest description and the popup's empty-state text mention company career pages.Checks
scripts/package.shchecks pass and buildapplyluma-extension-1.1.0.zip. Frontend lint, type-check, 391 tests and build pass.