Super.so is a service that makes the Notion page as a website. How many pages can we put in blocks one by one? Our time is precious.
To save our time, introduce you to install blocks on every page through Code Injection.
First, please proceed with the below things!
At https://joey.team/script, you can get a script that allows you to install blocks with script. You can choose between Comment Block, Q&A Block, or Like Block.
A little modification is needed for use on Super.so. Copy the contents of the red area and put them in the [copy text here] below.
Please modify the script below and use it.
<script>
window.onload = function() {
const content = document.getElementsByClassName("super-content")[0];
content.insertAdjacentHTML("beforeend", '**[copy text here]'**);
(function() {
var d = document, s = d.createElement('script');
s.src = '<https://joey.team/embed.js>';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
}
</script>
This is a completed example.
<script>
window.onload = function() {
const content = document.getElementsByClassName("super-content")[0];
content.insertAdjacentHTML("beforeend", '<div class="joey_block" owner_id="gIXHefbD9KXEnudcMRfHALtGcDa2" block_type="comment"></div>');
(function() {
var d = document, s = d.createElement('script');
s.src = '<https://joey.team/embed.js>';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
}
</script>