feature request: user.css + user.js javascript

67 views
Skip to first unread message

Dan z google

unread,
Apr 5, 2012, 2:37:52 PM4/5/12
to Pinboard
I know I can use the pinboard api to "make my own interface", or use
greasemonkey, but I would need to involve my own server and write lots
of code to access the api (I know you have examples to follow). It
would be a nice feature if on the "setting tab" you could add a
"advanced settings" button that leads to an "advanced settings" page.

This "advanced settings" page would allow the user to specify a
custom /js/users/user.js or /js/users/user.css -- that ONLY gets
inserted on the main bookmark page, just before </body> tag. If would
also be nice if you could store, on your server, the "latest stable
jquery.js" version in the /js/ folder for us to include in our
custom.js file. This avoids any cross site security problems.

The code on the main page would be real easy in php.
If user.css exists, add to page.
If User.js exists, add to page.
and you would need to add a upload file system similar to your "import
bookmarks" system.

On the "advanced setting page" add two text boxes or uploads.
a) enter in text box (or upload "user.css") user specified css for
main page
b) enter in text box (or upload "user.js") user specified javascript
for main page

Also on the page you should have buttons to :
A) [disable/enable Css]
B) [disable/enable Javascript]

And of course the standard disclaimer: "Use these advanced settings at
your own risk... This files are not secure. They are available to
anyone. They are stored in a public accessable folder /js/user/ ..."

But what happens if someone screws up? Let them fix it; add to API:
A) https://user:pass...@api.pinboard.in/disableCss
B) https://user:pass...@api.pinboard.in/disableJavascript
C) https://user:pass...@api.pinboard.in/disableAdvancedSettings

This would agree with your previous posts about you not spending time
on a fancy UI, but allow others to customize their experience easier
than having their own server.

Thank you

b m 2 0 1 1


maciej

unread,
Apr 5, 2012, 2:51:50 PM4/5/12
to Pinboard
An option for uploading a custom stylesheet is coming soon, but I
don't think it's a good idea to offer server-side javascript.

The idea of an 'advanced settings' page is something I've tried to
avoid since the beginning. I think it leads to a bad place.

> And of course the standard disclaimer: "Use these advanced settings at
> your own risk... This files are not secure.  They are available to
> anyone.  They are stored in a public accessable folder /js/user/ ..."

Keeping the site disclaimer-free is another hard-won achievement.

> This would agree with your previous posts about you not spending time
> on a fancy UI, but allow others to customize their experience easier
> than having their own server.

I think this approach would tend to create a maintenance hell for me
while still not giving users the full flexibility they presumably want
by using it. I'm much more inclined to work on a more comprehensive
API and tell interested people to just point their fancy javascript
app at that.

As for hosting a 'safe' version of jquery, I also don't want to be on
the hook for that.




Joshua Walker

unread,
Apr 17, 2012, 12:04:17 PM4/17/12
to pinboa...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages