oopy.io is a service that makes the Notion page a website.
Let's find out how to install Joey Block on every web page at once.
First, please proceed with the process below!
In https://joey.team/script, you can see a script that allows you to install blocks with Script Embed. Click Comment Block, Q&A Block, or Like Block to create the script.
A little modification is needed to use on oopy.io. 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("notion-page-content")[0];
content.insertAdjacentHTML("beforeend", '**[copy text here]'**);
content.lastChild.style = "width:100%;";
(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>
Pasted Example
<script>
window.onload = function() {
const content = document.getElementsByClassName("notion-page-content")[0];
content.insertAdjacentHTML("beforeend", '<div class="joey_block" owner_id="gIXHefbD9KXEnudcMRfHALtGcDa2" block_type="comment"></div>');
content.lastChild.style = "width:100%;";
(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>