New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Safari version? #15
Comments
right now it's just me and @yxshv developing it so supporting a safari extension would be quite time consuming for us. we have big goals with this project, so we will first work on that and then with enough bandwidth, will make the extension! |
Haven't tried it yet, but Apple provides an automatic converter: Converting a web extension for Safari |
A bookmarket could also work. It looks like it could be adapted from the Here's a very rough bookmarket javascript: (function() {
const endpoints = [
'https://your-production-api-endpoint.com/api/', // Production API endpoint
'http://localhost:3000/api/' // Development API endpoint
];
const data = { url: window.location.href }; // Data to be sent
Promise.all(endpoints.map(url =>
fetch(url, {
method: 'POST', // Use 'POST' or 'GET' as required by your API
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(data)
})
.then(response => {
if (!response.ok) {
throw new Error(`Failed to save at ${url}: ${response.statusText}`);
}
return response.json();
})
))
.then(results => {
alert('Website saved successfully to all endpoints!');
})
.catch(error => {
console.error('Error:', error);
alert('Error occurred: ' + error.message);
});
})(); One-Line format javascript:(function(){const endpoints=['https://your-production-api-endpoint.com/api/','http://localhost:3000/api/'];const data={url:window.location.href};Promise.all(endpoints.map(url=>fetch(url,{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify(data)}).then(response=>{if(!response.ok){throw new Error(`Failed to save at ${url}: ${response.statusText}`);}return response.json();}))).then(results=>{alert('Website saved successfully to all endpoints!');}).catch(error=>{console.error('Error:',error);alert('Error occurred: '+error.message);});})(); |
This could definitely work, JWT shouldn't be needed if the cookie is stored already (user is authenticated) |
Will there be a Safari extension anytime?
The text was updated successfully, but these errors were encountered: