Skip to content

Instantly share code, notes, and snippets.

View corbin-c's full-sized avatar
🏠
Working from home

Clément Corbin corbin-c

🏠
Working from home
View GitHub Profile
@corbin-c
corbin-c / autostart
Last active May 20, 2021 18:44
openbox conf / no xdg autostart
tint2 &
/usr/lib64/xfce4/notifyd/xfce4-notifyd &
xfce4-clipman &
xfce4-power-manager &
nm-applet &
volumeicon &
@corbin-c
corbin-c / table2json.js
Created April 7, 2020 07:05
bookmarklet to scrape a html table to json
javascript:
(async () => {
let parentType = (element,type) => {
if (element.nodeName.toLowerCase() == type.toLowerCase()) {
return element;
} else if (element.parentElement != null) {
return parentType(element.parentElement,type);
} else {
return false;
}
@corbin-c
corbin-c / multiple_links.js
Created February 13, 2020 15:54
bookmarklet to open multiple links at once, separated by a pipe |
@corbin-c
corbin-c / oe_full_issue.js
Last active January 28, 2020 14:33
Bookmarklet to rebuild full PDF issues from OpenEdition Journals.
javascript:(() => {
const pdftk = "https://web-pdftk.herokuapp.com/?inputs=";
window.location.href = pdftk+[...document.querySelectorAll(".title a")]
.map(url => {
url = url.href.split("/");
if (typeof url.find(component => component == "pdf") === "undefined") {
url.splice(-1,0,"pdf");
}
url = url.join("/");
url = encodeURIComponent(pdftk+url+"&operation=cat&options=2-end");