Script Injection Techniques Recap

  • 1
  • 1
  • Question
  • Updated 10 months ago
  • Doesn't Need an Answer
  • (Edited)
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
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,204 Points 20k badge 2x thumb

Posted 1 year ago

  • 1
  • 1
Photo of GH

GH

  • 616 Points 500 badge 2x thumb
do you have example code for each?
Photo of GH

GH

  • 616 Points 500 badge 2x thumb
any code examples