Forum Discussion

_anomDiebolt_'s avatar
_anomDiebolt_
Qrew Elite
7 years ago

Script Injection Techniques Recap

I thought this summary of Script Injection Techniques might help others understand the various options for injecting script into QuickBase:


Name: IOL (Image On Load)

Scope: {new, edit, view, report, grid edit} pages

Notes & Pros:
  • Oldest Technique
  • Most Examples
Cons:

  • N/A to Charts, Admin & Other Pages
  • Loads Late / Could Flicker


Name: BOL (Branding On Load)

Scope: All Pages In App

Notes & Pros:
  • Modifies Branding Bar
  • Easy for QB to Implement
  • Loads Early-ish
Cons:
  • Fragile To QB Change


Name: SW (Service Worker)

Scope: All PagesIn Entire Account!

Notes & Pros:
  • God Mode - Extremely Powerful
  • Offline, Notifications, Background Sync ...
  • Loads Before Rendering Starts
Cons:
  • All or Nothing: Takes Over Account


Name: DWS (Dashboard Widget Script)

Scope: Application Dashboard

Notes & Pros:
  • Simple Setup with Web Page Widget
Cons:
  • Applies Only to Dashboard


Name: US (User Script)

Scope: URL Pattern

Notes & Pros:
  • Match Against URL Patterns
  • GreaseMonkey, TamperMonkey
Cons:
  • Must Install On Per User Basis
  • Differences Between Browsers


Name: OEH (On Error HTML)

Scope: {new, edit, view, report, grid edit} pages

Notes & Pros:
  • Variant of IOL
  • No Code Page Needed
Cons:
  • Not Very Human Readable (HTML Encoded Script)
  • When Used On Reports Can Create Heavy Payload


Name: DCO (Dev Console Override)

Scope: Specified URL

Notes & Pros:
  • Convent For Development
  • Can Kill Evergage Spew To Console
  • Can Replace Or Modify Any Served Asset (HTML, CSS, JavaScript etc)
Cons:
  • Setup Per User
  • Somewhat Technical
  • Chrome Only At This Time