0

I am struggling to get Tampermonkey (with Chrome) to automatically change the display style of a field on a website. I would like to display the following hidden element:

<div class="VehicleDetailsPricing" id="VehicleDetailsPricing" style="display: none">

I can manually edit the the display style to inline which works, but cannot get Tampermonkey to do the same.

Brock Adams
  • 90,639
  • 22
  • 233
  • 295
Jamie Wright
  • 1,259
  • 3
  • 10
  • 11
  • 1
    The element is probably added dynamically after the page has been loaded. See [Greasemonkey is unable to find/modify/delete content on Twitch.tv?](http://stackoverflow.com/a/34298083) – wOxxOm Dec 18 '15 at 13:09
  • @wOxxOm is correct, See the duplicate question. You could use something like: `waitForKeyElements ("#VehicleDetailsPricing", showInline);` `function showInline (jN) { jN.css ("display", "inline"); }` – Brock Adams Dec 18 '15 at 18:51

0 Answers0