title: How to get a DOM element's ::before content with JavaScript?
body: <p>I want to know whether it is possible to get a DOM element's <code>::before</code> content, which was set by CSS3.</p>
  
  <p>I have tried some ways, but I still can't make it, so it's very confusing to me!</p>
  
  <pre><code>// https://rollbar.com/docs/
  
  const links = document.querySelectorAll(`ul.image-list a`);
  
  links[0];
  // &lt;a href="/docs/notifier/rollbar-gem/" class="ruby"&gt;::before Ruby&lt;/a&gt;
  
  links[0];
  //
  
  links[0].textContent;
  //"Ruby"
  
  links[0].innerText;
  // "Ruby"
  
  links[0].innerHTML;
  // "Ruby"
  
  // ??? links[0]::before;
  </code></pre>
  
  <p>This is the case:</p>
  
  <p><img src="https://i.stack.imgur.com/j4Op4.png" alt="![enter image description here"></p>