Skip to content

Instantly share code, notes, and snippets.

View sinsinpub's full-sized avatar

sin_sin sinsinpub

  • Free
View GitHub Profile
@sinsinpub
sinsinpub / show_recochoku_lyrics.js
Created December 7, 2012 18:08
Bookmarklet for showing lyrics at recochoku.jp
javascript:var w="";for (var i=0;i<dataint.words.length;i++){w+=String.fromCharCode(dataint.words[i]);}$('#lyric_txt').html('').append('<pre>'+w+'</pre>');document.body.oncontextmenu=null;document.body.onselectstart=null;
@sinsinpub
sinsinpub / vdisk_url.js
Created December 7, 2012 18:12
vdisk download url extractor (need to login)
javascript:var getDownloadUrl=function(fid){var file_s3_url="";var ajaxUrl="/share/ajaxFileinfo?fid="+fid+"&dl=true";$.ajax({url:ajaxUrl,dataType:"json",async:false,success:function (data){file_s3_url=data.s3_url;}});return file_s3_url};var fid=$("#download_popup").find("[name=fid]").val();$("#toolbar_download").attr("href",getDownloadUrl(fid));
@sinsinpub
sinsinpub / show_howfile.js
Created December 7, 2012 18:13
Show download div for howfile (skip ad)
javascript:var archs=document.getElementsByTagName("A");for(var i=archs.length-1;i>=0;i--){if(archs[i].id.substr(0,3)=='a_z'){archs[i].style.display='none';break;}} document.getElementById('floatdiv').style.display='';return false;
@sinsinpub
sinsinpub / baidupan_url.js
Created December 7, 2012 18:14
Download url extractor for baidu pan (single file, old layout only)
javascript:$('#barCmdDownload').attr('href',FileUtils.getLocalCache().obtain(FileUtils.ROOT_ID)[0].dlink);return false;
@sinsinpub
sinsinpub / java_editor.js
Created January 30, 2013 14:28
It looks like browser is becoming editor recently? Well, I'm an eclipse & java user...
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/eclipse");e.getSession().setMode("ace/mode/java");</script>
@sinsinpub
sinsinpub / poc.sh
Created September 28, 2014 06:44
PoC memo
# CVE-2014-6271
env x='() { :;}; echo vulnerable' bash -c /bin/true
# CVE-2014-7169
env var='() {(a)=>\' bash -c "echo date"; cat echo
@sinsinpub
sinsinpub / pixiv_removeThumbLayout.user.js
Last active August 2, 2022 10:58
Pixiv Thumbnail Layout Customizer
// ==UserScript==
// @name Pixiv Thumbnail Layout Customizer
// @author sin_sin
// @namespace https://gist.github.com/sinsinpub
// @version 0.9-2
// @description Open new tab on clicking for illust thumbnails.
// description Resize illust list layout and thumbnails.
// description Add a member illust list page link to currently viewing illust page.
// description Removes the CSS class of thumbnail (link anchor) layout at pixiv.net, 'cause it stops us copying to clipboard :(
// @copyright 2014-2022, sin_sin
@sinsinpub
sinsinpub / tumblr_unfixNewHeader.user.js
Last active August 29, 2015 14:08
Removes the "position: fixed" attribute on the new header bar on Tumblr.
// ==UserScript==
// @name Un-fix new Tumblr header
// @author sin_sin
// @namespace https://gist.github.com/sinsinpub
// @version 0.1b
// @description Removes the "position: fixed" attribute on the new header bar on Tumblr.
// @copyright 2014, sin_sin
// @match http://www.tumblr.com/dashboard
// @include *://www.tumblr.com/dashboard*
// @grant none
@sinsinpub
sinsinpub / inoreader_disableAdbCheck.user.js
Last active January 18, 2022 13:51
Disables ADB extension checking on Inoreader.
// ==UserScript==
// @name Inoreader disable adb check
// @author sin_sin
// @namespace https://gist.github.com/sinsinpub
// @version 0.8
// @description Hijack adb checking of inoreader, pretend to be ads is not good :P
// @copyright 2015-2022, sin_sin
// @match https://www.inoreader.com/*
// @include *://www.inoreader.com/*
// @include *://innoreader.com/*
@sinsinpub
sinsinpub / pixiv_OneClickBookmarker.user.js
Last active May 16, 2018 03:58
Add a quick button to bookmark member by one-click.
// ==UserScript==
// @name Pixiv One-Click Bookmarker
// @author sin_sin
// @namespace https://gist.github.com/sinsinpub
// @version 0.6
// @description Add a button to member pages to follow by one-click. Inspirated by https://github.com/Santarh/pixiv-one-click-bookmarker
// @copyright 2015-2018, sin_sin
// @match http://www.pixiv.net/member_illust.php?*
// @include *://www.pixiv.net/member.php?id=*
// @include *://www.pixiv.net/member_illust.php?id=*