Pages:
Author

Topic: [BETA] BPIP Extension - user info add-on / extension for Firefox, Chrome, et al - page 7. (Read 8386 times)

legendary
Activity: 3654
Merit: 8909
https://bpip.org
It adds an imgur button that uploads your local file and appends the url inside a img tag.

Brilliant.

I tried to extend it with a clipboard thingy so that I could paste an image (e.g. a screenshot) into the textbox. Unfortunately imgur doesn't like Tor but I'm thinking if I got that far then it might work for someone who's not on Tor. Try at your own risk. Add the following code somewhere inside the main "function":

Code:
document.querySelector('textarea').addEventListener('paste', e => {
   if (e.clipboardData.files && e.clipboardData.files.length > 0) {
      document.getElementById('uploadImage').files = e.clipboardData.files;
      document.getElementById('uploadImage').dispatchEvent(new Event('change'));
   }
});

Loading...



Dude.... Works AWESOME in my latest chrome version! I can't thank you enough, only thing better (?)is if there was a way to upload hidden to your [own] imgur account(if even possible ofc), and maybe size options lol.. Tongue (Now I'm def asking too much sorry)! Tongue Cheesy

Not sure how imgur API works - what with being unable to use it as per above - but perhaps this line can be changed to use your account:

Code:
     headers: { authorization: 'Client-ID 09727b421c2303e' },

legendary
Activity: 3570
Merit: 1959
Here is my prototype, uploaded to gist because Cloudflare was blocking me: https://gist.github.com/ninjastic/377880cea83c6fed96b94e5dbe258dd5

It adds an imgur button that uploads your local file and appends the url inside a img tag.



(image uploaded and inserted through the script itself)

Dude.... Works AWESOME in my latest chrome version! I can't thank you enough, only thing better (?)is if there was a way to upload hidden to your [own] imgur account(if even possible ofc), and maybe size options lol.. Tongue (Now I'm def asking too much sorry)! Tongue Cheesy

legendary
Activity: 2758
Merit: 6830
Do you mean the extension button would upload the image to a 3rd party site and then auto-insert the embed code from it?
Yep, that's what I mean Smiley
Here is my prototype, uploaded to gist because Cloudflare was blocking me: https://gist.github.com/ninjastic/377880cea83c6fed96b94e5dbe258dd5

It adds an imgur button that uploads your local file and appends the url inside a img tag.



(image uploaded and inserted through the script itself)

edit: Instructions are here if you want to upload the images to your imgur account.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
I take it you're volunteering to create an image hosting site? Smiley
I've thought about it, I tried, then realized my PHP copy/pasting skills are not enough. Ideally the image server should allow to easily download/backup all uploaded images, so that if it ever disappears, someone else can create a replacement (assuming Admin is willing to change domain X to Y in the server's database).
legendary
Activity: 3654
Merit: 8909
https://bpip.org
Do you mean the extension button would upload the image to a 3rd party site and then auto-insert the embed code from it?
Yep, that's what I mean Smiley

I take it you're volunteering to create an image hosting site? Smiley
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
Do you mean the extension button would upload the image to a 3rd party site and then auto-insert the embed code from it?
Yep, that's what I mean Smiley
legendary
Activity: 1789
Merit: 2535
Goonies never say die.
This got me thinking:
I don't think you'll see a quick upload bottom at the moment
Would an extension be able to create an upload button for embedded images (apart from the issue who's going to store it)?

Do you mean the extension button would upload the image to a 3rd party site and then auto-insert the embed code from it?
If so, imgur has an API which this could probably work with.. assuming I'm understanding what you're asking?
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
This got me thinking:
I don't think you'll see a quick upload bottom at the moment
Would an extension be able to create an upload button for embedded images (apart from the issue who's going to store it)?
legendary
Activity: 2212
Merit: 7064
No immediate plans right now. There aren't any significant bugs as far as I know, at least not specific to the extension. There is some stuff that is a bit bugged on the server side, like the inactive users not activating immediately once they start posting again.
Maybe this is the explanation for what happened with BPIP SSL website and extension error that we all experienced few days ago.
Apparently Let's Encrypt revoked a lot of SSL certificates in two days because of some bug they had, so it was not your fault after all Smiley
You can read more about that and technical details on bleepingcomputer website:
https://www.bleepingcomputer.com/news/security/lets-encrypt-is-revoking-lots-of-ssl-certificates-in-two-days/
legendary
Activity: 3654
Merit: 8909
https://bpip.org
Are there any plans that I don't know for updating the extension with new features or bug fixes?

No immediate plans right now. There aren't any significant bugs as far as I know, at least not specific to the extension. There is some stuff that is a bit bugged on the server side, like the inactive users not activating immediately once they start posting again.
legendary
Activity: 2212
Merit: 7064
Sorry about that, some bizarre failure with certificate renewal. Should be ok now - let me know if you're still seeing any issues.
No problem, nobody is perfect Wink
Everything is working fine on my side now, both extension and bpip website are back to normal operation.
Are there any plans that I don't know for updating the extension with new features or bug fixes?
legendary
Activity: 3654
Merit: 8909
https://bpip.org
@suchmoon I guess you already know that BPIP website has expired certificate, and that affects BPIP extension that is currently also not working and not showing any information.
I hope this gets resolved soon.

Sorry about that, some bizarre failure with certificate renewal. Should be ok now - let me know if you're still seeing any issues.
legendary
Activity: 2212
Merit: 7064
@suchmoon I guess you already know that BPIP website has expired certificate, and that affects BPIP extension that is currently also not working and not showing any information.
I hope this gets resolved soon.
legendary
Activity: 3570
Merit: 1959
Ok, chalk this up to an "I'm fucked in the head" kinda day sorry - I was trying to see someone who was saying they got banned, but I neglected to think about the fact that when I was testing it, it would NOT say "ACTIVE".... Sorry, I need sleep and having some personal challenges lately. Thanks for the help all, and for everyone who worked together to bring all these awesome tools together into this awesome extension. Smiley

Cheers,
owlcatz 🦉
legendary
Activity: 3654
Merit: 8909
https://bpip.org
Is the error at the end the issue?

Uhm... I don't see any errors, looks perfectly fine.

Do you see my DT2 badge? Any other data, like BPIP rank? Here is how my profile should look like with your settings (I'm not inactive etc so there won't be that):

Loading...

And here is someone who is banned:

https://bitcointalksearch.org/user/fonenumba-357340

Loading...

Edit 2 - Maybe I should clean my chrome cache completely? Huh (Ugh, no!!!) Tongue

Before doing anything so drastic (and the cache shouldn't matter) please try updating the extension - click the update button on the chrome extension page. Your screenshot shows version 2.2.4, the latest version is 2.2.5. I don't think there were any breaking changes in a minor version update but just in case.
legendary
Activity: 3570
Merit: 1959
Ok, this is sooo weird...

I've restarted, removed and reinstalled etc etc - still the same. Here are my settings:



And here is an example from console....



Is the error at the end the issue? Huh

Thanks again everyone, love this extension. Smiley

I'm sure if I tried Edge or some other browser it would work, so I haven't tried that yet obviously. Tongue

Edit 2 - Maybe I should clean my chrome cache completely? Huh (Ugh, no!!!) Tongue
legendary
Activity: 3654
Merit: 8909
https://bpip.org
it's not showing for any profiles, but I can see the element on inspection, like your profile says:

The extension creates the element on page load and fills it in once it gets data from the server. If you can't get it work after restart, could you please try the following:

  • Go to the extension properties: chrome://extensions/?id=ecpfdlfjiabpdnlhmkmannofnmpdakkj
  • Click Inspect views -> background page.
  • Check the console there for any errors.

Normally it should show the request that it sent it to the server and the response, e.g.
Code:
API request: {"instance_id":null,"scope":"[DT][S]","items":["662400"]}

API response: {"result":{"662400":{"dt_score":null,
"dt_status":"DT2",
"user_status":"INACTIVE",
"recog_rank":null,"earned_merits":null,"earned_merits_all":null}},"server_settings":{"warning":"","cache_time":600}}
legendary
Activity: 3696
Merit: 2219
💲🏎️💨🚓
...

chalkboard17 (who is mentioned above) continues to be shown as "Inactive" on my system, so I guess there's an issue at your end?
legendary
Activity: 3570
Merit: 1959
I'm noticing ACTIVE/INACTIVE/BANNED status is not working for me in Chrome but can't figure out why... Huh

It should be working. Do you have the "banned/inactive/archived" option enabled in the settings?

If it still doesn't work give me an example of a user profile that is not showing correctly.

I do. I tried enabling and disabling, and clearing all data but I've not restarted chrome yet...

it's not showing for any profiles, but I can see the element on inspection, like your profile says:

Code:


I have to run out for a few hours, but when I get back I'll give it a restart (too many windows open I need atm / bad timing!)

Thanks for the fast reply/help! Wink

legendary
Activity: 3654
Merit: 8909
https://bpip.org
I'm noticing ACTIVE/INACTIVE/BANNED status is not working for me in Chrome but can't figure out why... Huh

It should be working. Do you have the "banned/inactive/archived" option enabled in the settings?

If it still doesn't work give me an example of a user profile that is not showing correctly.
Pages:
Jump to: