Page 1 of 1

Blueprint Not Copying Correctly

Posted: Wed Dec 04, 2024 1:29 pm
by IsaacOscar
When clicking the blueprint on this post viewtopic.php?p=649020#p649020

i.e.

Re: Blueprint Not Copying Correctly

Posted: Wed Dec 04, 2024 1:30 pm
by IsaacOscar
It also copies some JavaScript:

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;    });
Moreover, everything I write after the blueprint does not show up.

Re: Blueprint Not Copying Correctly

Posted: Wed Dec 04, 2024 1:31 pm
by boskid
It looks like some weird artifact of using opening bp tag to close bp section.


Re: Blueprint Not Copying Correctly

Posted: Wed Dec 04, 2024 1:32 pm
by IsaacOscar
boskid wrote: Wed Dec 04, 2024 1:31 pm It looks like some weird artifact of using opening bp tag to close bp section.
Ahah you're right, there was no slash! Thanks