I am trying to make a script that copies the contents of a certain div, and put it into the clipboard (ready to paste). This div is within a site (Shopify), which I cannot modify.
<ul class="next-list next-list--plain-divided" id="line-item-properties" refresh="line-item-properties">
<li class="type--breakall">
<div class="next-grid next-grid--compact next-grid--no-outside-padding next-grid--vertically-centered">
<div class="next-grid__cell">
<div class="wrappable wrappable--no-spacing">
<div class="wrappable__item wrappable__item--no-flex">
<p class="type--subdued">Custom Text:</p>
</div>
<div class="wrappable__item">
IWANTTHISTEXT
</div>
</div>
</div>
<div class="next-grid__cell next-grid__cell--no-flex hide-when-printing">
<a href="/admin/orders/170903371809/delete_property?line_item_id=332788334625&property_key=Custom+Text"
class="btn btn--link" data-tg-remote="delete" data-refresh-on-success="line-item-properties"
>
<svg class="next-icon next-icon--color-ink-lighter next-icon--size-20">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#delete-minor"></use>
</svg>
</a>
</div>
</div>
</li>
So I want the area of text that says "IWANTTHISTEXT".
So far I have attempted multiple strategies and come up with nothing! Any help would be appreciated.