Skip to content

Instantly share code, notes, and snippets.

View egoist's full-sized avatar
🙏
Please support my open-source projects!

EGOIST egoist

🙏
Please support my open-source projects!
View GitHub Profile
@egoist
egoist / remove.js
Created April 16, 2025 08:13
remove twitter followers
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()
We couldn’t find that file to show.
<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
}
Verifying my Blockstack ID is secured with the address 14m5dDv9vS52wHFeQZWF1XMbGAMZDCvi4w https://explorer.blockstack.org/address/14m5dDv9vS52wHFeQZWF1XMbGAMZDCvi4w
@egoist
egoist / patreon-banner.png
Last active April 8, 2019 16:56
Support my work on Patreon!
patreon-banner.png
<div>hello {name}</div>
<script>
export default {
data() {
return {
name: 'egoist'
}
}
}
@egoist
egoist / cmd.bash
Last active February 22, 2019 07:35
postcss load plugin
npm i -g postcss-cli
postcss in.css -o out.css
@egoist
egoist / vbuild-6-to-7.md
Last active April 16, 2017 14:53
Migrate vbuild 6 to 7

CLI

- vbuild --dev
+ vbuild dev

- vbuild --watch
+ vbuild watch