Git Product home page Git Product logo

picgo-plugin-sspai's Introduction

PicGo plugin for sspai

This repository is a PicGo plugin implementation for conveniently and quickly uploading images to SSPAI website.

How to install

  1. Clone/Download this repository to PicGo configuration folder.

In windows, it's C:\Users\<your username>\.picgo\

In linux and mac, it's ~/.picgo/

  1. Create a folder named node_modules and make a soft link to this repository.
  2. Edit package.json with dependencies.
{
  "dependencies": {
    "picgo-plugin-sspai": "file:picgo-plugin-sspai"
  }
}
  1. Edit package-lock.json like this.
{
  "name": "picgo-plugins",
  "requires": true,
  "lockfileVersion": 1,
  "dependencies": {
    "picgo-plugin-sspai": {
      "version": "file:picgo-plugin-sspai"
    }
  }
}

The final structure should be like this.

~/.picgo > tree
.
├── config.json
├── node_modules
│   └── picgo-plugin-sspai <soft link>
├── package.json
├── package-lock.json
├── picgo.log
└── picgo-plugin-sspai
    ├── index.js
    ├── License
    ├── md5.min.js
    ├── package.json
    └── README.md

How to config

Login in to your account in sspai.com website.

Press F12 to open the console and the type:

document.cookie.split('; sspai_cross_token=').pop().split(';').shift()

Replace the cross_token with the return string in config.json

Example config file in PicGo.

{
  "picBed": {
    "current": "sspai",
    "uploader": "sspai",
    "transformer": "base64",
    "sspai": {
      "cross_token": "<replace here>"
    }
  },
  "picgoPlugins": {
    "picgo-plugin-sspai": true
  }
}

That's all and enjoy !

picgo-plugin-sspai's People

Contributors

wsine avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.