Chrome extension

Forum for developers

Chrome extension

Beitragvon antham » Fr Feb 14, 2014 1:34 pm

Hi everyone,

I started some months ago an extension for chrome using bootstrap + angularjs. At the moment I added ability like in firefox extension to blacklist, crawl and search. It's not yet completely finished but I wanted some feedback and wanted to know if you like it, if I have to continue and what you want inside. I'm going to put it on github if you agree with that.

Here you can find this extension : http://ao0xck3gzo.1fichier.com/

To use search you have to write in address bar "yacy" and type what keyword you want to search, other features are easy to use so I don't give details.
antham
 
Beiträge: 7
Registriert: Fr Feb 14, 2014 1:29 pm

Re: Chrome extension

Beitragvon Orbiter » Fr Feb 14, 2014 3:41 pm

thats really nice! Maybe not so many users here have Chrome, so I made a screenshot:
Chrome_Browser_YaCy_Extension.png
Chrome Browser YaCy Extension screenshot
Chrome_Browser_YaCy_Extension.png (143.66 KiB) 5671-mal betrachtet
Orbiter
 
Beiträge: 5792
Registriert: Di Jun 26, 2007 10:58 pm
Wohnort: Frankfurt am Main

Re: Chrome extension

Beitragvon Orbiter » Fr Feb 14, 2014 3:50 pm

To all non-YaCy-users who wants to try that:

- open chrome://extensions/
- select options
- click on "peer"
- in "peer_address" enter "search.yacy.net", in "peer_port" enter "80"
..to use the example search of YaCy.

IF TOO MANY PEOPLE DO THAT, IT WILL STOP WORKING! We don't have a data center, just a tiny box. You are supposed to run your own peer, please do that!
Orbiter
 
Beiträge: 5792
Registriert: Di Jun 26, 2007 10:58 pm
Wohnort: Frankfurt am Main

Re: Chrome extension

Beitragvon Vega » Mo Mär 17, 2014 11:09 am

Hello,

it is good that you use http://search.yacy.net - but how Orbiter writes, if it will make too many people these servers, the load can no longer be processed. Support us by your own YaCy server operates, or help us with donations - so we can faster hardware, multiple servers can provide.

regards
Thomas
Vega
 
Beiträge: 824
Registriert: Mi Jun 27, 2007 3:34 pm
Wohnort: Dresden

Re: Chrome extension

Beitragvon Vega » Mo Mär 17, 2014 11:09 am

Hallo,

es ist gut das ihr http://search.yacy.net benutzt - aber wie Orbiter schreibt, wenn es zu viele Leute machen wird dieser Server die Last nicht mehr verarbeiten können. Unterstützt uns, indem Ihr eigene YaCy-Server betreibt, oder helft uns mit Spenden - damit können wir schnellere Hardware, mehrere Server bereitstellen können.

Grüße
Thomas
Vega
 
Beiträge: 824
Registriert: Mi Jun 27, 2007 3:34 pm
Wohnort: Dresden

Re: Chrome extension

Beitragvon antham » Di Apr 01, 2014 3:20 pm

Sorry, I'm really late to post another message. I put extension code here https://github.com/antham/yacybar , there is a problem remaining with travis to have test working in github, it's the reason why I didn't post here this repository yet. It's necessary to fix that before resuming.
antham
 
Beiträge: 7
Registriert: Fr Feb 14, 2014 1:29 pm

Re: Chrome extension

Beitragvon antham » Di Apr 01, 2014 3:40 pm

To add another comment, what is missing I think, is a full api. You have one, but it miss some functionalities.
antham
 
Beiträge: 7
Registriert: Fr Feb 14, 2014 1:29 pm

Re: Chrome extension

Beitragvon Orbiter » Di Apr 01, 2014 3:43 pm

Hi antham, what functionality exactly do you need?
Orbiter
 
Beiträge: 5792
Registriert: Di Jun 26, 2007 10:58 pm
Wohnort: Frankfurt am Main

Re: Chrome extension

Beitragvon antham » Mi Apr 02, 2014 10:02 am

What come to my mind with what I've done :

To manage entries in blacklist, I followed what was defined in firefox extension, you have to use Blacklist_p.html?addBlacklistEntry=&currentBlacklist=currentBlacklist&newEntry and it returns html so get message if action where successful or not is hard.

It would be nice to have json as output and every time error or success message to output that directly.

Maybe it could be nice to have full rest api on blacklists, blacklist entries to create/edit/delete/list those stuffs from outside.
antham
 
Beiträge: 7
Registriert: Fr Feb 14, 2014 1:29 pm

Re: Chrome extension

Beitragvon Low012 » Di Apr 29, 2014 11:59 pm

I have started working on an API and I have just commited my code to the git repository. I have onyl implemented some very basic things so far and I have only implemented them for XML so far. I used the existing APIs for inspiration.

Get a list of all blacklists:
http://localhost:8090/api/blacklists/get_metadata_p.xml

Get a specific blacklist:
http://localhost:8090/api/blacklists/get_list_p.xml?list=url.default.black

Add a new entry to a blacklist:
http://localhost:8090/api/blacklists/add_entry_p.xml?list=url.default.black&entry=.example.org/shop/.*

Delete an entry from a blacklist:
http://localhost:8090/api/blacklists/delete_entry_p.xml?list=url.default.black&entry=.example.org/shop/.*

Does this look OK for a start? I'll try to create a WIki page as quick as possible, but for now I have to quit and get some sleep.

edit: Just noticed an inconsitency in the naming: "name" and "blacklist" is the same thing with two different names. I will fix that tomorrow.

edit: I just renamed the key of the parameter "blacklist name" to "list". I also changed the examples above.
Low012
 
Beiträge: 2214
Registriert: Mi Jun 27, 2007 12:11 pm

Re: Chrome extension

Beitragvon Orbiter » Mi Apr 30, 2014 10:58 am

great! thats really useful!
Orbiter
 
Beiträge: 5792
Registriert: Di Jun 26, 2007 10:58 pm
Wohnort: Frankfurt am Main


Re: Chrome extension

Beitragvon antham » Mi Mai 07, 2014 8:36 pm

I'm going to have a look to your job for mine
antham
 
Beiträge: 7
Registriert: Fr Feb 14, 2014 1:29 pm

Re: Chrome extension

Beitragvon Low012 » Do Mai 08, 2014 11:46 am

Cool! This is what I plan to add in the (hopefully) not too distant future:

  • adding/deleting blacklists
  • activate/deactivate sharing of blacklists
  • activate/deactivate blacklist for dht/crawler/proxy/search/surftips/news
  • consolidate new API and old servlets (used for XML import and export)
  • test if blacklists match a given URL

If you have any additional requests or if there is anything which I should assign a high priority to, please let me know.
Low012
 
Beiträge: 2214
Registriert: Mi Jun 27, 2007 12:11 pm

Re: Chrome extension

Beitragvon antham » Do Mai 08, 2014 9:11 pm

I had a look to http://localhost:8090/api/blacklists/ge ... ata_p.json , to see generated json as you asked.

I would rather write for json
{
"name":"url.default.black",
"shared":true,
"types":{
"dht":true,
"crawler":true,
"proxy":true,
"search":true,
"surftips":true,
"news":true
},
"items":[
".example.org/shop/.*"
]
}

but in xml shared,dht,crawler etc... are on the same level and they are not in json. Also a comma was missing before items, I guess you could populate a java object and transform it to json to have a correct json at the end.
antham
 
Beiträge: 7
Registriert: Fr Feb 14, 2014 1:29 pm

Re: Chrome extension

Beitragvon Low012 » Mo Mai 19, 2014 7:54 pm

Sorry for the delay. I have just committed an updated version.
Low012
 
Beiträge: 2214
Registriert: Mi Jun 27, 2007 12:11 pm

Re: Chrome extension

Beitragvon cheech » Mo Mai 26, 2014 11:28 am

i'm a noob so there is a chrome plugin to download? ive downloaded from github it from the github page but how to install?
cheech
 
Beiträge: 1
Registriert: Mo Mai 26, 2014 11:01 am

Re: Chrome extension

Beitragvon antham » So Aug 10, 2014 5:08 pm

Sorry, I didn't see notification about that. To produce a chrome extension you can use
Code: Alles auswählen
grunt crx
at the root of projet, it produces an extension located in build folder or you can load app folder as unpacked extension from chromium extension menu. Best option would be for yacy team to produce an extension an put it on chrome store.

About new api, where is it, I can't remember which branch I used last time ?
antham
 
Beiträge: 7
Registriert: Fr Feb 14, 2014 1:29 pm


Zurück zu YaCy Coding & Architecture

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast