osmoscraft / osmosmemo Goto Github PK
View Code? Open in Web Editor NEWTurn GitHub into a bookmark manager
Home Page: https://chrome.google.com/webstore/detail/osmosmemo/chgfencjlhmjhmnnpnlnchglkkdcipii
License: MIT License
Turn GitHub into a bookmark manager
Home Page: https://chrome.google.com/webstore/detail/osmosmemo/chgfencjlhmjhmnnpnlnchglkkdcipii
License: MIT License
To reproduced the bug:
I know that is is not the proper way to do. Sorry in advance...
function getPageTitle() {
let title;
if (document.location.href.includes("youtube.com/channel")) {
document.querySelector("#text-container").innerText
} else if (document.location.href.includes("youtube.com")) {
title = document.querySelector("#container > h1").innerText;
} else {
title = document.querySelector(`meta[property="og:title"]`)?.getAttribute("content")?.trim();
}
if (!title) {
title = document.querySelector(`meta[name="twitter:title"]`)?.getAttribute("content")?.trim();
}
if (!title) {
title = document.querySelector("title")?.innerText?.trim();
}
if (!title) {
title = document.querySelector("h1")?.innerText?.trim();
}
if (!title) {
title = "";
}
return title;
}
Hi,
I add tag to every item, but how do I better use it? I could only think of CTRL+F.
If not, I request a function: in the final memo page, at the top and end of the page, add a link for each tag, which redirect to a page of filtered results.
Please consider in future version.
When parsing a github repo, the title should just be <owner>/<repo>
and the description should be the details as configured on github.
A more generation consideration is how we manage these types of "first class citizen" websites at scale. Maybe some extension parser profile system is needed.
A regression caused by Chrome rendering engine. Pending investigation.
Root cause: inserContent
need to return the promise
osmosmemo/src/lib/github/rest-api.ts
Line 11 in 9569b4b
ActiveTab permission can provide URL and page title. Still need to refactor all the draft caching logic into the storage API.
Url should be kept as is. Lowercasing breaks links like youtube links.
When I try to create a tag in Chinese, it seems that intermediate results (created by the IME) will be captured. It's basically impossible to create Chinese tags besides first type it somewhere else then copy back in.
The issue seems to be caused by the usage of keydown
event, which failed to correctly handle the composition string created by IME. Probably CompositionEvent
is the right choice.
Google Chrome team has notified me of the upcoming deprecation of extension Manifest v2. However, Firefox team will be rolling out support a bit later so I'm creating this issue to keep tracking of the platform support status. Ideally I would rewrite for v3 when both Firefox and Chrome provide support.
Key dates:
Jan 2023 - Chrome drop v2 support
Q3 2021 - Firefox piloting v3
References
https://blog.mozilla.org/addons/2021/05/27/manifest-v3-update/
https://developer.chrome.com/docs/extensions/mv3/mv2-sunset/
Can the browser extension be made to display the current list of bookmarks as well? In addition to saving them.
Is ther a way to configure a different Git provider (say, a personal Gitea instance) without modding the source code and recompiling?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.