Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Latest commit

 

History

History
49 lines (35 loc) · 1.58 KB

README.md

File metadata and controls

49 lines (35 loc) · 1.58 KB

THIS PROJECT IS ARCHIVED AS IT NO LONGER WORKS. KINDLY FORK AND FIDDLE WITH THE SOURCE IF YOU NEED TO.

YACY it

Adds the current webpage to the local YACY index. This assumes you are running YaCy in localhost:8090.

Screenshot

Getting the Extension

The extension is available from the Firfox Addons site.

get-the-addon.png

Configuring YaCy

The extension requires CORS headers to be set in order for it to display the messages correctly. This can be set by editing yacy/defaults/web.xml. Add the following snippet after the <description> block and restart YaCy.

  <filter>
   <filter-name>cross-origin</filter-name>
   <filter-class>org.eclipse.jetty.servlets.CrossOriginFilter</filter-class>
   <init-param>
       <param-name>allowedOrigins</param-name>
       <param-value>*</param-value>
   </init-param>
   <init-param>
       <param-name>allowedMethods</param-name>
       <param-value>*</param-value>
   </init-param>
   <init-param>
       <param-name>allowedHeaders</param-name>
       <param-value>*</param-value>
   </init-param>
 </filter>
 <filter-mapping>
     <filter-name>cross-origin</filter-name>
     <url-pattern>/*</url-pattern>
 </filter-mapping>

NOTE: The extension also works without this configuration, but the right message will not be displayed after you click the button.

Credits & Attribution

Icon - Vitaly Gorbachev from Flaticon.com