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
// ==UserScript== | |
// @name 0AutoPagerize SITEINFO | |
// @namespace http://ss-o.net/ | |
// @description oAutoPagerize SITEINFO | |
// @include http* | |
// @checkurl http://ss-o.net/userjs/0AutoPagerize.SITEINFO.js | |
// ==/UserScript== | |
(function(){ | |
if (this.chrome) { | |
window.addEventListener('ChromeAutoPagerizeInitialize',function(evt){ |
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(){var ca=void(0);var da={targetFrame:ca,exportInstaller:false,useNative:true,useInnerText:true};var ea;if(window.jsxpath){ea=window.jsxpath;} | |
else{var fa=document.getElementsByTagName('script');var ga=fa[fa.length-1];var ha=ga.src;ea={};var ia=ha.match(/\?(.*)$/);if(ia){var ja=ia[1].split('&');for(var i=0,l=ja.length;i<l;i++){var ka=ja[i];var la=ka.split('=');var ma=la[0];var na=la[1];if(na==ca){na==true;} | |
else if(na=='false'||/^-?\d+$/.test(na)){na=eval(na);} | |
ea[ma]=na;}}} | |
for(var n in da){if(!(n in ea))ea[n]=da[n];} | |
ea.hasNative=!!(document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("XPath",null));if(ea.hasNative&&ea.useNative&&!ea.exportInstaller){return;} | |
var oa;var pa;var qa;var ra;var sa;var ta;var va;var wa;var xa;var ya;var za;var Aa;var Ba;var Ca;var Da=new function(){var ua=navigator.userAgent;if(RegExp==ca){if(ua.indexOf("Opera")>=0){this.opera=true;} | |
else if(ua.indexOf("Netscape")>=0){this.netscape=true;} | |
else if(ua.indexOf("Mozilla/")==0){this |
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
AutoPagerizeCallbackSiteinfo([ | |
{ | |
"url":"^https?(://[^.]+\\.wik(?:i(?:[mp]edia|books|news|quote|s(?:ource|pecies)|versity)|tionary)\\.org|s://secure.wikimedia.org/wik(?:i(?:[mp]edia|books|news|quote|s(?:ource|pecies)|versity)|tionary)/[^/]+)/w(?:iki/|/index\\.php\\?title=)(?:Special|%E7%89%B9%E5%88%A5)(?::|%3A)(?:(?:Ancient|Deadend|Lonely|New|MostLinked|Short|Uncategorized)Pages|(?:MostLink|Un(?:categoriz|us)|Want)ed(?:Categori|Templat)es|AbuseLog|BlockList|(?:Broken|Double)Redirects|C(?:ategorie|ontribution|rossNamespaceLink)s|Disambiguations|FewestRevisions|Global(?:BlockList|Users)|L(?:i(?:nkSearch|st(?:Redirect|User)s)|og)|Most(?:Categorie|Revision)s|Protected(?:Page|Title)s|W(?:hatLinksHere|ithoutInterwiki|anted(?:File|Page)s)|%E(?:3%8(?:2%AB%E3%83%86%E3%82%B4%E3%83%AA%E3%81%AE%E5%A4%9A%E3%81%84%E3%83%9A%E3%83%BC%E3%82%B8|3%AD%E3%82%B0)|6%(?:8A%95%E7%A8%BF%E8%A8%98%E9%8C%B2|96%B0%E(?:3%81%97%E3%81%84%E3%83%9A%E3%83%BC%E3%82%B8|7%9D%80%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB))|7%B7%A8%E9%9B%86%E5%B1%A5%E6%AD%B |
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
// StackOverflow: Taptic in iOS 9 | |
// http://stackoverflow.com/a/36320245/3283039 | |
#import <Foundation/Foundation.h> | |
#import <UIKit/UIDevice.h> | |
@import AudioToolbox; | |
#include <sys/sysctl.h> | |
#define VER_10_0_OR_LATER ([[[UIDevice currentDevice] systemVersion] floatValue] >= 10.0f) |
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
"use strict";/* author:@amberjack115 */var SimplifyStyles=function(){return SimplifyStyles.prototype.getGlobal.call(this,arguments);};SimplifyStyles.prototype={constants:{version:'Simplify Styles v0.7',ajaxTimeout:10000,readyTimeout:8000,resourcePath:(location.protocol=='https:'?'https:':'http:')+'//amberjack115.herokuapp.com/share',exports:"init simplify enablePJAX showMessage changeFontSize toggleTheme hideOrShowElements",key_fontsize:'ss-fontsize',key_theme:'ss-theme',wrapperId:'ssw'+(0|Math.random()*0x7FFFFFFF),containerId:'ssc'+(0|Math.random()*0x7FFFFFFF),loaderId:'ssl'+(0|Math.random()*0x7FFFFFFF),messageBarId:'ssm'+(0|Math.random()*0x7FFFFFFF),messageTextId:'sst'+(0|Math.random()*0x7FFFFFFF),scrollBarId:'sss'+(0|Math.random()*0x7FFFFFFF),isWebKit:navigator.userAgent.indexOf('WebKit')>=0,isiPhone:navigator.userAgent.indexOf('WebKit')>=0&&navigator.userAgent.indexOf('iPhone')>=0,isiPad:navigator.userAgent.indexOf('WebKit')>=0&&navigator.userAgent.indexOf('iPad')>=0,isLegacyiOS:/OS[34]/.test(navigator.us |
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
javascript:var _0x5aa5=["\x6C\x69\x6E\x6B","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x73\x42\x79\x54\x61\x67\x4E\x61\x6D\x65","\x6C\x65\x6E\x67\x74\x68","\x74\x79\x70\x65","\x67\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x74\x65\x73\x74","\x68\x72\x65\x66","\x73\x79\x6C\x66\x65\x65\x64","\x72\x65\x70\x6C\x61\x63\x65","\x73\x79\x6C\x66\x65\x65\x64\x3A\x2F\x2F\x69\x63\x2E\x65\x64\x67\x65\x2E\x6A\x70\x2F\x70\x61\x67\x65\x32\x66\x65\x65\x64\x2F\x70\x72\x65\x76\x69\x65\x77\x2F"];(function(){var _0xe186x1;var _0xe186x2;var _0xe186x3=document[_0x5aa5[1]](_0x5aa5[0]);for(var _0xe186x4=0;_0xe186x4<_0xe186x3[_0x5aa5[2]];_0xe186x4++){_0xe186x2=_0xe186x3[_0xe186x4];if(/application\/(rss|atom)\+xml/i[_0x5aa5[5]](_0xe186x2[_0x5aa5[4]](_0x5aa5[3]))){_0xe186x1=_0xe186x2[_0x5aa5[4]](_0x5aa5[6]);break}};if(_0xe186x1){location[_0x5aa5[6]]=location[_0x5aa5[6]][_0x5aa5[8]](/^[^:]+/,_0x5aa5[7])}else {location[_0x5aa5[6]]=_0x5aa5[9]+location[_0x5aa5[6]]}})() |
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 injectStyleSheet(cssText) { | |
var $style = document.createElement('style'); | |
var css = document.createTextNode(cssText); | |
var container = document.getElementsByTagName('head')[0]; | |
$style.type = 'text/css'; | |
if ($style.styleSheet) { | |
$style.styleSheet.cssText = css.nodeValue; | |
} | |
else { | |
$style.appendChild(css); |
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
javascript:(function()%7Bwindow.addEventListener('scroll',%20function()%7Bvar%20wH%20=%20window.innerHeight%20+%2080.0;var%20mstA%20=%20document.querySelectorAll('._mst');if%20(mstA.length%20==%201)%20%7Bvar%20mst%20=%20mstA[0];if%20(mst.getBoundingClientRect().top%20<%20wH)%20%7Bmst.click();%7D%7Dvar%20morA%20=%20document.querySelectorAll('._mpc._mwe');if%20(morA.length%20==%201)%20%7Bvar%20mor%20=%20morA[0];if%20(mor.getBoundingClientRect().top%20<%20wH)%20%7Bmor.click();%7D%7D%7D);%7D)(); |
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
@mixin my-sprite-background ($sprites, $sprites-retina, $name) { | |
background-image: sprite-url($sprites); | |
background-position: sprite-position($sprites, $name); | |
background-repeat: no-repeat; | |
display: block; | |
height: image-height(sprite-file($sprites, $name)); | |
width: image-width(sprite-file($sprites, $name)); | |
@media (-webkit-min-device-pixel-ratio: 2), | |
(-o-min-device-pixel-ratio: 3/2), | |
(min-device-pixel-ratio: 2) { |
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
#!/bin/bash | |
# Usage | |
# cd /path/to/icon-directory/ | |
# convertImageForWatch.sh target.png | |
i=0 | |
sizes=(44 40 38 36 32 28 24 22 20 18 16 14) | |
path="$1" |