Skip to content

Instantly share code, notes, and snippets.

Avatar

Jun Morimoto mrmt

View GitHub Profile
@mrmt
mrmt / gist:1464ac88fe4dd0b61fef52872a727899
Last active Jun 17, 2020 — forked from t-yamamoto-mercury-inc/gist:b58969dcc58bb13ee4b7e2c1fc316501
Googleドライブのパスをクリップボードにコピーするブックマークレット
View gist:1464ac88fe4dd0b61fef52872a727899
javascript:(function(){
var pre = 'Googleドライブの「';
var xpath = '//*[@guidedhelpid="folder_path"]';
document.getElementsByXPath = function(expression, parentElement) {
var r = [];
var x = document.evaluate(expression, parentElement || document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
for (var i = 0, l = x.snapshotLength; i < l; i++) {
r.push(x.snapshotItem(i));
} return r;
View slack2html.php
<?
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//