Skip to content

Instantly share code, notes, and snippets.

@bhanu951
Created January 30, 2024 13:21
Show Gist options
  • Save bhanu951/a2fa50f1778284d51be3b5c101a145d3 to your computer and use it in GitHub Desktop.
Save bhanu951/a2fa50f1778284d51be3b5c101a145d3 to your computer and use it in GitHub Desktop.
const styles = ".node-project-release .field-name-body li { margin: 0.5rem 0; } .node-project-release .issue-meta { font-size: 85%; color: #666; }"
const css = document.createElement('style');
css.type = 'text/css';
css.appendChild(document.createTextNode(styles));
document.querySelector('head').appendChild(css);
const issueLinks = document.querySelectorAll('.node-project-release .field-name-body li a');
issueLinks.forEach(function(link) {
const text = link.innerHTML;
link.innerHTML = text.replace(/Issue #\d+[^:]*:/, function (match) {
return '<span class="issue-meta">' + match + "</span><br>"
});
});
// Source https://drupal.slack.com/archives/C1BMUQ9U6/p1706614071247059?thread_ts=1706612626.929429&cid=C1BMUQ9U6
// Script to run in browser console that makes Drupal Release Note readable. Paste the script in browser console.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment