This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var els = document.querySelectorAll('[data-testid="primaryColumn"] button[aria-haspopup="menu"]') | |
var sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)) | |
for (const el of els) { | |
el.click() | |
await sleep(20) | |
var btn = document.querySelector('[data-testid="removeFollower"]') | |
btn.click() | |
await sleep(20) | |
var btn = document.querySelector('[data-testid="confirmationSheetConfirm"]') | |
btn.click() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div>{{ page.profile.name }}</div> | |
</template> | |
<script> | |
export default { | |
props: ['page'] | |
} | |
</script> |
You may want to manipulate initial HTML to inject some <link>
s or <script>
s, you can do this with setHead
in saber-browser.js
or head
component option, but that adds bytes to your app runtime, Saber actually has an API that allows you to customize initial HTML.
Open saber-node.js
:
exports.getDocumentData = documentData => {
documentData.bodyScript += `<script>console.log('Run a script after your app code')</script>`
return data
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying my Blockstack ID is secured with the address 14m5dDv9vS52wHFeQZWF1XMbGAMZDCvi4w https://explorer.blockstack.org/address/14m5dDv9vS52wHFeQZWF1XMbGAMZDCvi4w |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div>hello {name}</div> | |
<script> | |
export default { | |
data() { | |
return { | |
name: 'egoist' | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm i -g postcss-cli | |
postcss in.css -o out.css |
NewerOlder