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
// ==UserScript== | |
// @name auto-amazon | |
// @namespace http://tampermonkey.net/auto-amazon | |
// @version 0.1 | |
// @description auto-amazon | |
// @author DebugMi | |
// @match https://www.amazon.cn/* | |
// @grant GM_log | |
// @grant GM_setValue | |
// @grant GM_getValue |
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
set number | |
set expandtab | |
set ts=2 | |
set sw=2 | |
set scrolloff=10 | |
syntax enable | |
syntax on | |
set laststatus=2 | |
set autoindent | |
set tabstop=2 |
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 getSystem() { | |
const isWx = this.isWx() | |
const u = navigator.userAgent; | |
if(isWx && u.indexOf('Android') > -1){ | |
return 'aw' | |
} | |
if (u.indexOf('Android') > -1 || u.indexOf('Linux') > -1) { | |
return 'a' | |
} else if (u.indexOf('iPhone') > -1) { |
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
@-webkit-keyframes scale { | |
0% { | |
-webkit-transform: scale(1); | |
transform: scale(1); | |
opacity: 1; } | |
45% { | |
-webkit-transform: scale(0.1); | |
transform: scale(0.1); | |
opacity: 0.7; } |
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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |