When clicking the blueprint on this post viewtopic.php?p=649020#p649020
i.e.
Blueprint Not Copying Correctly
- IsaacOscar
- Filter Inserter
- Posts: 843
- Joined: Sat Nov 09, 2024 2:36 pm
- Contact:
Blueprint Not Copying Correctly
Last edited by IsaacOscar on Wed Dec 04, 2024 1:32 pm, edited 3 times in total.
- IsaacOscar
- Filter Inserter
- Posts: 843
- Joined: Sat Nov 09, 2024 2:36 pm
- Contact:
Re: Blueprint Not Copying Correctly
It also copies some JavaScript:
Moreover, everything I write after the blueprint does not show up.
Code: Select all
0eNptUdtuwyAM/Rc/0yohl5X8SjUhwmhmjeAISLuqyr/PpJO2h74Y25hzjg8PGP3qloghw/AAtBQSDOcHJJyC8aUXzOxggGjQwyYAw4f7hqHexIsha+JEh5uZKPybldu7ABcyZnRP9L2467DOo4sMJl4BCFgo8RtOmYFxDrVUAu6cyFoeq6pRVS+7rWCb0TvtacKU0SZ9+0SuZ7pimGC4GJ+cAIrIvOYJWAmwtNy1JU9RXyLNOvOKQadMCww5rq5M8GUhf2qc9jju0TDEsVUnFiHrjo+67ZteNlXbn966ffcrs1FkuWH1vljA0PaLGUNwtqj4dbp0i6E8gdnN7MLfnwi4uph2xV0vVatU1yp56ttq234AdraQ/Q== Copy blueprint var button = document.currentScript.previousElementSibling; button.id = button.id + '_' + Math.random().toString(36).substr(2, 9); button.addEventListener("click", function (event) { var copyTarget = document.createElement("input"); bptext = this.previousElementSibling.innerHTML.replace(/(]+)>)/gi, ""); copyTarget.setAttribute("value", bptext); document.body.appendChild(copyTarget); copyTarget.select(); document.execCommand("copy"); document.body.removeChild(copyTarget); return false; });
Re: Blueprint Not Copying Correctly
It looks like some weird artifact of using opening bp tag to close bp section.
- IsaacOscar
- Filter Inserter
- Posts: 843
- Joined: Sat Nov 09, 2024 2:36 pm
- Contact:
Re: Blueprint Not Copying Correctly
Ahah you're right, there was no slash! Thanksboskid wrote: Wed Dec 04, 2024 1:31 pm It looks like some weird artifact of using opening bp tag to close bp section.