thadk / bookmarklets

toggle github.io and github

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bookmarklets

pinboard with referrer:

Stacks with highlight-to-add description.

Example:

 Title: OpenXC 
 URL: http://openxcplatform.com/
 Description: 
     refrr:http://t.co/xtDIl0vZvv
     (your selected text here)
 Tags: ford  api  arduino  car  development  hardware   

To install, make a new bookmark on your Bookmark bar by dragging the favicon from the URL bar into the bar then edit it and paste in the code. Make sure javascript is included.


RESQ bookmarklet for https://github.com/baruchvlz/resq

https://unpkg.com/browse/resq@1.10.0/dist/index.js

Example code for Slack: [...new Set([].concat(resq.resq$$("*", document.querySelector(".p-workspace__primary_view_contents"))).map(a => a.props?.member).filter(a => a !== undefined && a!== null).sort((a,b) => a.name < b.name).map(a => '@'+a.name))].join(', ')

Github toggle between github.io domain and its repository

paste the source code into a bookmark's url field to create a bookmarklet

currently only github.js, which toggles between a repo's source and docs (gh-pages)

broken on firefox + https github:

CSP WARN: Directive inline script base restriction violated

also see rawgithub


Carto.com (and open source Carto): grab the tile URL to clipboard


This can be used in e.g. Knightlabs' Storymap.

If you have the carto leaflet map loaded on the screen, this grabs a PNG tile URL like

https://cartocdn-gusc-d.global.ssl.fastly.net/thadk/api/v1/map/thadk@87dd8c26@dd4f32d56dae379c9c525987eed03e4e:1532535143384/1,3,4,5,7,8/7/77/66.png

alters it into

https://cartocdn-gusc-{s}.global.ssl.fastly.net/thadk/api/v1/map/thadk@87dd8c26@dd4f32d56dae379c9c525987eed03e4e:1532535143384/0,1,3,4,5,7,8/{z}/{x}/{y}.png

and puts it on your clipboard.

The Bookmarkets themselves

For dragging to the menu

  • CartoTile
  • Pinboard with autofilled referrer
  • g.io Github io toggle
  • resq

About

toggle github.io and github

License:The Unlicense


Languages

Language:JavaScript 100.0%