new LinkedIn()

Description

LinkedIn specific information.

Members


urlChangeMonitorSelector :string

Description

CSS selector to monitor if self-managing URL changes.

Override in subclass if desired.

The selector must resolve to an element that, once it exists, will continue to exist for the lifetime of the SPA.


dispatcher :NexusHoratio.base.Dispatcher


id :string

Details
string

logger :NexusHoratio.base.Logger


spa :NexusHoratio.spa.SPA


<static> asideSelector :string

Description

LinkedIn's common aside used in many layouts.

Details
string

<static> primaryContentSelector :string

Description

LinkedIn's primary content for many layouts.

Details
string

<static> primaryNavSelector :string

Description

LinkedIn's common navigation bar.

Details
string

<static> scrollerPrimaryClassName :string

Description

CSS class name common for primary scrollers.

Details
string

<static> scrollerSecondaryClassName :string

Description

CSS class name common for secondary scrollers.

Details
string

<static> sidebarSelector :string

Description

LinkedIn's common sidebar used in many layouts.

Details
string

dispatcher2 :NexusHoratio.base.Dispatcher


licenseData :module:linkedin-tool~LinkedIn~LicenseData



pageStyle :module:linkedin-tool~LinkedIn.Style


registrationComplete :boolean

Details
boolean

<static, readonly> Style :Symbol

Description

Different implementation styles across LinkedIn over time.

Properties
Name Type Default Description
UNKNOWN Symbol
ONE Symbol
TWO Symbol
Details
Symbol

Methods


<static> aboutTab() → {TabbedUI~TabDefinition}

Returns

Where to find documentation and file bugs.


<static> errorTab( variant ) → {TabbedUI~TabDefinition}

Parameters
Name Type Description
variant string

Migration text, one of spa or lit.

Returns

Initial placeholder for error logging.


<static> ckeyIdentifier( element ) → {string}

Parameters
Name Type Description
element external:Element

Element to examine.

Returns

A value unique to this element.

Details

Scroller~uidCallback


<static> errorPlatformInfo() → {string}

Description

Generate information about the current environment useful in bug reports.

Returns

Text with some wrapped in a pre element.


<static> hN( element, level ) → {string}

Description

Combine text from child headers.

Parameters
Name Type Description
element external:Element

Element to examine.

level number

Header level to use.

Returns

Combined header text.


<static> h1( element ) → {string}

Description

Combine text from child headers.

Parameters
Name Type Description
element external:Element

Element to examine.

Returns

Combined header text.


<static> h2( element ) → {string}

Description

Combine text from child headers.

Parameters
Name Type Description
element external:Element

Element to examine.

Returns

Combined header text.


focusOnSidebar()

Description

Scroll common sidebar into view and move focus to it.


focusOnAside()

Description

Scroll common aside (right-hand sidebar) into view and move focus to it.


newsTab() → {TabbedUI~TabDefinition}

Returns

News information.


licenseTab() → {TabbedUI~TabDefinition}

Returns

License information.


<private> gfUrl( path ) → {string}

Description

Create a Greasy Fork project URL.

Parameters
Name Type Description
path string

Portion of the URL.

Returns

Full URL.


<private> ghUrl( path ) → {string}

Description

Create a GitHub project URL.

Parameters
Name Type Description
path string

Portion of the URL.

Returns

Full URL.


<private> ghIssue( issue ) → {string}

Description

Create a GitHub issue URL.

Parameters
Name Type Description
issue string

Issue portion of the URL.

Returns

Full URL.


<private> onActivateUnsupportedPageCheck( type, pages )

Parameters
Name Type Description
type string

Event type.

pages NexusHoratio.spa.Page~Pages

Updated pages information.


<private> guessPageStyle( element ) → {module:linkedin-tool~LinkedIn.Style}

Parameters
Name Type Description
element external:Element

Starting element to avoid another query.

Returns

<private> waitUntilPageLoadedEnough()

Description

Hang out until the navigation bar has stabilized.


<private> finishConstruction()

Description

Do the bits that were waiting on the page.


<private> licenseFetch() → {module:linkedin-tool~LinkedIn~FetchResult}

Returns

<private> licenseHandler()

Description

Lazily load license text when exposed.


<private> infoName( dismissId ) → {external:Element}

Parameters
Name Type Description
dismissId string

Element #id to give dismiss button.

Returns

For the info widget name header.


<private> infoInstructions() → {external:Element}

Returns

Instructions for navigating the info widget.


<private> forceFocusEvent()

Description

Force any 'focus' handlers to run.


<private> addLitStyle()

Description

Create CSS styles for stuff specific to LinkedIn Tool.


<private> updateInfoErrorsLabel( count )

Description

Update Errors tab label based upon value.

Parameters
Name Type Description
count number

Number of errors currently logged.


<private> errorTextHandler( evt )

Parameters
Name Type Description
evt Event

The 'change' event.


<private> findMissingStyleProperties( el1, el2, ignore ) → {Array.<string>}

Description

Determine the style property differences between two elements.

Parameters
Name Type Description
el1 external:Element

The first element.

el2 external:Element

The second element.

ignore Set.<string>

A collection of style properties to ignore.

Returns

Style properties present in the first, but not the second element, formatted to add to this source file.


<private> newsHandlerBadgeStyle1( eventType, show )

Description

Update news badge as appropriate.

Parameters
Name Type Description
eventType string

Event type.

show boolean

Whether to show the badge or not.


<private> errorHandlerBadgeStyle1( eventType, count )

Description

Update error badge as appropriate.

Parameters
Name Type Description
eventType string

Event type.

count number

Number of errors currently logged.


<private> finishButtonStyle1( button )

Description

Tweak the internals of whatever random element we cloned.

Parameters
Name Type Description
button external:Element

The newly created button.


<private> assembleBadgesStyle1( element )

Parameters
Name Type Description
element external:Element

Element that will hold the badges.


<private> newsHandlerBadgeStyle2( eventType, show )

Description

Update news badge as appropriate.

Parameters
Name Type Description
eventType string

Event type.

show boolean

Whether to show the badge or not.


<private> errorHandlerBadgeStyle2( eventType, count )

Description

Updates error badge as appropriate.

Parameters
Name Type Description
eventType string

Event type.

count number

Number of errors currently logged.


<private> finishButtonStyle2( button )

Description

Tweak the internals of whatever random element we cloned.

Parameters
Name Type Description
button external:Element

The newly created button.


<private> assembleBadgesStyle2( element )

Parameters
Name Type Description
element external:Element

Element that will hold the badges.


<private> connectMenuItem( menuItem, selector )

Description

Connect our menu item to the navbar if necessary.

It will always go after "Me" menu item.

This supports both Styles 1 and 2.

Parameters
Name Type Description
menuItem external:Element

The menu item to connect.

selector string

The CSS selector for "Me".


<private> updateInfoNewsLabel( highlight )

Description

Update News tab label as appropriate.

Parameters
Name Type Description
highlight boolean

Whether to show the badge or not.


<private> newsListener()

Description

Decisions about news could be made before the UI is available.


<private> findNavbar()

Description

Find the nav links and ensure observers.


<private> observeNavbar()

Description

Reset observers for the navbar.


Description

Recheck various items after a change to the navbar.

Fires

<private> shortcutsTab() → {TabbedUI~TabDefinition}

Returns

Keyboard shortcuts listing.


<private> reportIssueProblems( unknown, unused, old )

Description

Post problems about stale issues.

Parameters
Name Type Description
unknown Set.<string>

Issue ids referenced in news items but not in globalKnownIssues.

unused Set.<string>

Stale globalKnownIssues ids.

old Set.<string>

Stale globalNewsContent entries.


<private> preprocessKnownIssues() → {obj}

Returns

dates and known issues.


<private> refreshErrors()

Description

Send change event to the errors text area.


<private> addError( content )

Description

Add content to the Errors tab so the user can use it to file feedback.

Parameters
Name Type Description
content string

Information to add.


<private> addErrorMarker()

Description

Add a marker to the Errors tab so the user can see where different issues happened.

Type Definitions


LicenseData

Properties
Name Type Attributes Description
id string

SPDX id for the license.

url string

License URL.

content string <nullable>

Fallback content.

Details
object

FetchResult

Properties
Name Type Description
fetched boolean

Indicates if a useful result was generated; all right to retry if false.

spdx string

The SPDX id.

content string

HTML content to be rendered.

Details
object