Skip to content
Alejandro Barreto edited this page Jul 18, 2019 · 16 revisions

Notes for myself and don't bubble up to issues.

TODO

Notes from 2019-06-26

  • Document in CONTRIB how to edit the userscript from local disk. But also check in actual path and also a return statement
  • Run npm install when first cloned. Go get npm also
  • If using vscode install this: https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint
  • Caveat checkboxes only work on single domain
  • About local storage space: 10005030
  • Document the weird func pattern
  • More sub-functions? Or use classes?
  • User-visible error handling as a page banner
  • Fully update README and CONTRIB

Useful links for dashboard testing

Useful links for checkbox testing

Random

Also available at: https://cdn.jsdelivr.net/gh/alejandro5042/azdo-userscripts/src/azdo-pr-dashboard.user.js

Babel?

// ==UserScript==
// @name         New ES6-Userscript
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  shows how to use babel compiler
// @author       You
// @require      https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.18.2/babel.js
// @require      https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.16.0/polyfill.js
// @match        <$URL$>
// ==/UserScript==

var inline_src = (<><![CDATA[

    // Your code here...

]]></>).toString();
var c = Babel.transform(inline_src, { presets: [ "es2015", "es2016" ] });
eval(c.code);

Please refer documentation in the README.md.

Clone this wiki locally