Key | Description |
---|---|
Config.Url |
URL of your MDT |
Config.SecretKey |
Your service secret key, ask Knid to get it |
Config.Command |
Command to open MDT |
Config.Key |
Keyboard key to open MDT be default |
I hereby claim:
- I am rdlh on github.
- I am knid (https://keybase.io/knid) on keybase.
- I have a public key whose fingerprint is 4626 5F9A A282 704A D1FF 94B0 903F DB39 E0A9 D658
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fetchInstagramId(callback) { | |
fetch('https://i.instagram.com/api/v1/users/' + window._sharedData.entry_data.ProfilePage[0].graphql.user.id + '/info/') | |
.then(response => response.json()) | |
.then(json => callback(json)) | |
.catch(error => callback(error, null)) | |
} | |
function fetchHdProfilePicture() { | |
fetchInstagramId(function(data) { | |
window.open(data.user.hd_profile_pic_url_info.url) |
- Code for generating the user_hash value for Slaask's Identity verfication
- Based on http://www.jokecamp.com/blog/examples-of-creating-base64-hashes-using-hmac-sha256-in-different-languages/#ruby
- When creating this for mobile, the final output needs to be in lowercase (the web version accepts both upper and lower case)
- So Javascript code below should only be used for testing unless modified and used to run on a server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var i = 0 | |
$('.Grid-cell').each(function() { | |
i++ | |
var id = $(this).find('a').attr('href').split('/')[3] | |
setTimeout(function() { | |
window.open("https://thenounproject.com/icon/" + id + "/download/color/000000/svg/"); | |
}, i * 1000) | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var dispatch = [{ referrer: 'referrer1.com', group_id: 1 }, { referrer: 'referrer2.com', group_id: 2 }, { referrer: 'referrer3.com', group_id: 3 }] | |
var results = $.grep(dispatch, function(e){ return e.referrer == document.referrer; }); | |
if(results.length == 0) { | |
_slaask.init("xxxxxxxxxxxxxxxxxxxxxxxxxxxx"); | |
} else { | |
_slaask.init("xxxxxxxxxxxxxxxxxxxxxxxxxxxx", { user_group_id: results[0].group_id }); | |
} |
I hereby claim:
- I am rdlh on github.
- I am rdlh (https://keybase.io/rdlh) on keybase.
- I have a public key whose fingerprint is 6B41 A6DC D0B2 7B37 6B5E 669A 1755 EDB5 EEDB 8C18
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"Seti_ClosedFolder_dots": true, | |
"Seti_ClosedFolder_remove": true, | |
"Seti_ClosedFolder_same": true, | |
"Seti_SB_big": true, | |
"Seti_SB_bright": true, | |
"Seti_SB_med": true, | |
"Seti_in_4_a_treat": true, | |
"Seti_no_bar_undertabs": true, | |
"Seti_pad_3": true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var host = "wurstify.me"; | |
var pingInterval = 60000; // ms | |
var pingIntervalId = undefined; | |
var enabledSince = 0; | |
// source: http://stackoverflow.com/questions/736513/how-do-i-parse-a-url-into-hostname-and-path-in-javascript | |
var reURLInformation = new RegExp([ | |
'^(https?:)//', // protocol | |
'(([^:/?#]*)(?::([0-9]+))?)', // host (hostname and port) | |
'(/[^?#]*)', // pathname |
NewerOlder