Skip to content

Instantly share code, notes, and snippets.

@mickert
Last active February 20, 2026 10:28
Show Gist options
  • Select an option

  • Save mickert/2ad42fe8d98f7b84f4f42589cc2b5bd2 to your computer and use it in GitHub Desktop.

Select an option

Save mickert/2ad42fe8d98f7b84f4f42589cc2b5bd2 to your computer and use it in GitHub Desktop.

Instantly cleans the BloFin trading UI by hiding the announcement banner and enabling "No Preview".

Not using BloFin? Go check it out for low fees and liquid markets: https://blofin.com/

Demo

BloFin-UI-Cleaner--Bookmarklet

A short animated preview of the bookmarklet in action.

Installation

  1. Create a new bookmark in your browser.
  2. Name it BloFin UI Cleaner.
  3. Paste the full blofin-ui-cleaner bookmarklet code into the URL field.
  4. Open any BloFin trading page and click the bookmark to run it.

What it does

  • Closes the announcement banner
  • Selects No Preview in the footer ticker menu
  • Works on both Spot and Futures trading pages
  • No extension required, no permissions needed

License

Apache License 2.0
Distributed on an “AS IS” basis without warranties or liability.

Support

Enjoying this bookmarklet? Support: https://ko-fi.com/michelsprojects

javascript:(function () {
/*
* BloFin UI Cleaner (Bookmarklet)
* Instantly cleans the BloFin trading UI by hiding the banner and enabling “No Preview”.
*
* Install: Create a new bookmark, name it "BloFin UI Cleaner", paste this code into the URL field, then click it on any BloFin trading page.
*
* Not using BloFin? Go check it out: https://blofin.com/?referral_code=94JlC4
*
* Copyright 2025 Michel Sijmons
* https://mickert.dev
*
* Licensed under the Apache License, Version 2.0 (the "License");
* You may not use this file except in compliance with the License.
* https://www.apache.org/licenses/LICENSE-2.0.txt
*
* Distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND.
* Use at your own risk.
*
* Enjoying this bookmarklet? Support: https://ko-fi.com/michelsprojects
*
* Canonical repository:
* https://gists.mickert.dev/2ad42fe8d98f7b84f4f42589cc2b5bd2#file-blofin-ui-cleaner-bookmarklet-js
*
*/
function tryClickWarningBar() {
const closeBtn =
document
.querySelector('main > div.flex:first-child > div.flex > span.iconfont')
?.parentElement
?.parentElement
?.querySelector('span.iconfont:last-child');
if (!closeBtn) return false;
closeBtn.click();
console.log('[BloFin Auto Clean UI] Closed announcement bar');
return true;
}
function tryClickNoPreview() {
const tickerMenu = document.querySelector('div[class*="FooterSymbolList_tickerMenu"]');
if (!tickerMenu) return false;
const listItems = tickerMenu
.querySelector('div[class*="FooterSymbolList_popContainer"]')
?.querySelectorAll('li');
if (!listItems) return false;
for (const li of listItems) {
if (li.textContent.trim().toLowerCase() === 'no preview') {
li.click();
console.log('[BloFin Auto Clean UI] Clicked "No Preview"');
return true;
}
}
return false;
}
tryClickWarningBar();
tryClickNoPreview();
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment