This file contains 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
/* HTTP Function to initialize / reset question counter manually */ | |
const express = require('express'); | |
const cors = require('cors')({ | |
origin: true | |
}); | |
const app = express(); | |
app.use(cors); | |
app.get('/', (req, res) => { | |
const topicID = req.query.topicID, |
This file contains 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 click(){ | |
return new Promise(resolve=>{ | |
[...document.querySelectorAll('.js-stream-item.stream-item')].forEach(container => { | |
container.querySelector('.ProfileTweet-action--unfavorite').click(); | |
container.remove(); | |
}); | |
resolve(); | |
}) | |
}; |
This file contains 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
[outputs] | |
home = ["HTML", "RSS", "JSON"] |
I hereby claim:
- I am CaiJimmy on github.
- I am jimmycai (https://keybase.io/jimmycai) on keybase.
- I have a public key whose fingerprint is AB5B 5B5A 9B33 78C6 7FA9 B6C2 E3D5 D635 F780 1C9E
To claim this, I am signing this object:
This file contains 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
$(document).ready(function(){ | |
if($('#archivePage').length){ | |
var $item = $('.archiveList--item'), | |
dates = {}; | |
$item.each(function(){ | |
dates[$(this).data('date')] = ''; | |
}); | |
for (date in dates) { |
This file contains 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 MConfig = { | |
siteName: "{{@blog.title}}", | |
twitterName: '', | |
qiniuURL: '', | |
defaultColor: '#00BCD4', | |
loadMore: '0', | |
disqus_load: '0', | |
disqus_shortname: '' | |
} |
This file contains 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
$('img[src^="https://nichijou.org/content/images"]').each(function(){ | |
var src = $(this).attr("src") | |
var newsrc = src.replace( 'https://nichijou.org', '//CDN-URL.qbox.me' ); | |
$(this).attr("src", newsrc ); | |
}) |
This file contains 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
<button id="load-disqus" onclick="disqus.load();"> | |
加载Disqus | |
</button> | |
<div id="disqus_thread"></div> |
NewerOlder