Coder Social home page Coder Social logo

autotag's Introduction

拇指期刊后台录入文案自动补全标签脚本

适用于JDC案例展示工具

  • 可补全标签(快捷键):
  • a标签(ctrl+l)
  • 案例标题(ctrl+,(逗号))
  • 图片(ctrl+.(句号))
  • 图片说明(ctrl+/)
  • 作者(ctrl+[)
  • 引用(ctrl+])

注意!使用脚本添加的内容无法ctrl+z撤回!

使用方法:

打开Chrome Dev Tools的Sources标签下的Snippets标签

chrome snippets

空白处右键-New 将文末的代码段复制到右侧新弹出的标签页中,保存 每次打开案例录入系统时,右键-Run,每次打开都要Run,它只是一段客户端脚本

chrome snippets

在输入框中选中需要包裹标签的文本,然后使用对应快捷键即可。

2016-3-23 2.0更新

增加快捷按钮列表,运行脚本后出现在页面左侧

chrome snippets

2016-3-24 3.0更新

增加图片获取文件名与尺寸,并合成标签,显示于控制台的功能

使用方法:

  • 将图片上传至对应期刊下的子目录
  • 将所有图片文件名放入一个pic.js中的uploadpics_maga参数中,并将其一并上传至你的图片目录中(详见pics_demo.js文件)

日期需在后台系统中选择准确发刊日 变量foldername需设置为当期图片所在文件夹名称 脚本加载之后会先进行图片的加载,因此需要等一段时间才能生成所有图片的标签

chrome snippets

chrome snippets

2016-4-26 3.1更新

增加视频、子标题标签 去除快捷键(Windows与OS X不通用)

autotag's People

Contributors

lyxuncle avatar

Stargazers

Yetty avatar

Watchers

James Cloos 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.