{"id":87,"date":"2023-09-01T11:19:16","date_gmt":"2023-09-01T11:19:16","guid":{"rendered":"https:\/\/shadowboat.app\/lancexapp\/?p=87"},"modified":"2024-01-02T04:52:07","modified_gmt":"2024-01-02T04:52:07","slug":"whats-prepend-script","status":"publish","type":"post","link":"https:\/\/shadowboat.app\/lancexapp\/whats-prepend-script\/","title":{"rendered":"What&#8217;s &#8220;Prepend Script&#8221;?"},"content":{"rendered":"\n<div class=\"wp-block-jetpack-markdown\"><p>There is an option in <code>Rule<\/code> -&gt; <code>Advance<\/code> named <code>Prepend Script<\/code>. The script you put in will be triggered together with other scripts each time.<\/p>\n<p>So you can:<\/p>\n<ul>\n<li>Add some code to debug.<\/li>\n<li>Enhance the script ability.<\/li>\n<li>Add some util libraries.<\/li>\n<li>Although we support most of the APIs, some of the scripts use global variables to check the App type, so we can pretend as other runtime, for example Rocket(<em>https:\/\/shadowboat.app\/lancex\/module\/rocket.js<\/em>)<\/li>\n<li>\u2026<\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-87","post","type-post","status-publish","format-standard","hentry","category-usage"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/shadowboat.app\/lancexapp\/wp-json\/wp\/v2\/posts\/87","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shadowboat.app\/lancexapp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shadowboat.app\/lancexapp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shadowboat.app\/lancexapp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shadowboat.app\/lancexapp\/wp-json\/wp\/v2\/comments?post=87"}],"version-history":[{"count":5,"href":"https:\/\/shadowboat.app\/lancexapp\/wp-json\/wp\/v2\/posts\/87\/revisions"}],"predecessor-version":[{"id":133,"href":"https:\/\/shadowboat.app\/lancexapp\/wp-json\/wp\/v2\/posts\/87\/revisions\/133"}],"wp:attachment":[{"href":"https:\/\/shadowboat.app\/lancexapp\/wp-json\/wp\/v2\/media?parent=87"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shadowboat.app\/lancexapp\/wp-json\/wp\/v2\/categories?post=87"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shadowboat.app\/lancexapp\/wp-json\/wp\/v2\/tags?post=87"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}