Skip to content

Instantly share code, notes, and snippets.

View jiji262's full-sized avatar

jiji262 jiji262

  • Shanghai, China
  • 05:21 (UTC +08:00)
View GitHub Profile
@jiji262
jiji262 / ishadow_ss.py
Last active September 10, 2018 12:45
ishadow_ss.py
# _*_ coding: utf-8 _*_
#
# Step 1:
# sudo pip install requests
# Step 2:
# sudo pip install shadowsocks
# Step 3:
# In "VPN.S HTTP Proxy" or other tools, set proxy to 127.0.0.1:1080
#
@jiji262
jiji262 / medium-remove-hash.js
Created March 3, 2017 08:19
remove Medium sites location hash (script for tampermonkey)
// ==UserScript==
// @name Medium: remove location hash
// @namespace http://efcl.info/
// @description Remove location hash from medium
// @include https://medium.com/*
// @version 1
// @grant none
// ==/UserScript==
function removeLocationHash(){
@jiji262
jiji262 / www-post-thumb.php
Created August 15, 2016 08:39 — forked from gmazzap/www-post-thumb.php
WordPress plugin that allow to use an external image url as featured image.
<?php namespace GM\WWWPostThumbnail;
/**
* Plugin Name: WWW Post Thumbnail
* Description: Allow to use an external image url as featured image.
* Plugin URI: https://gist.github.com/Giuseppe-Mazzapica/928bc22e5f49a654cf7c
* Author: Giuseppe Mazzapica
* Author URI: https://github.com/Giuseppe-Mazzapica
* License: MIT
* Version: 0.1.0
*
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>个人js加解密功能页面</TITLE>
<SCRIPT>eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('z 9I(){l o=L N();l i,s;I(i=0;i<w.k.A;i++){s=w.k.Q(i).1X(16);v(3A.Z)o+="&#"+w.k.Q(i)+";";H v(3z.Z)o+="&#"+L N(7-K(s).A).1Q("0")+w.k.Q(i);H o+=w.k.Q(i)+","}w.k=o}z 9H(){l o=L N();l i;v(3A.Z){l s=w.k.Y(";");I(i=0;i<s.A;i++){s[i]=s[i].E(\'&#\',\'\');o+=K.O(s[i])}}H v(3z.Z){l s=w.k.Y("&");I(i=1;i<s.A;i++){s[i]=s[i].E(\'#\',\'\');o+=K.O(s[i])}}H{l s=w.k.Y(",");I(i=0;i<s.A;i++)o+=K.O(s[i])}w.k=o}z 9G(){l o=L N();l i,s;I(i=0;i<w.k.A;i++){s=w.k.Q(i).1X(16);v(3s.Z)o+="\\\\u"+L N(5-K(s).A).1Q("0")+s;H v(3r.Z)o+="&#x"+L N(5-K(s).A).1Q("0")+s+";";H v(3m.Z)o+="\\\\x"+L N(5-K(s).A).1Q("0")+s;H o
<HTML><head><TITLE>T4nk JS混淆工具</TITLE>
<meta name="description" content="JS混淆工具<" />
<META content="MSHTML 6.00.2800.1528" name=GENERATOR>
<META content="" name=Author>
<META content="" name=Keywords>
<META content="" name=Description></HEAD>
<BODY>
<SCRIPT language=JavaScript>
<!--
/*
12306 Auto Query => A javascript snippet to help you book tickets online.
Copyright (C) 2011-2012 Jingqin Lynn
Includes jQuery
Copyright 2011, John Resig
Dual licensed under the MIT or GPL Version 2 licenses.
http://jquery.org/license
Includes Sizzle.js
//豆瓣:只显示楼主
javascript:void(function(){$(".topic-reply li").each(function(){ if($(this).find(".user-face a").attr('href')!=$(".user-face:first").find('a').attr('href')){$(this).toggle() } });})();