Last active
January 26, 2016 08:22
-
-
Save Haraguroicha/5690084 to your computer and use it in GitHub Desktop.
change custom dimension for up up. ref: http://small-upup.upuptoyou.com/ Note: this is paste and run in DevTools console panel
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(){ | |
//以下可自行修改,目前可7行且最多14字 | |
var userWidth = 900; //我是寬度 | |
var userHeight = 680; //我是高度 | |
var userWords = ''; //我是預設文字 | |
var userColor = ''; //我是背景色彩 | |
//以下請勿修改 | |
if(location.href.match(/https?:\/\/small-upup\.upuptoyou\.com\/?/) != null) { | |
$('#words').val(userWords === '' ? 'Modify By:\n腹黒い茶 \nQQQQ QQQQ !!\nQ Q Q Q !!\nQ QQ Q QQ !!\nQQQQ QQQQ\n Q Q !!' : userWords); | |
Haniboi.prototype.setSize = function(e) { | |
this.dimensions = {canvas: {w: userWidth,h: userHeight},start: {image: {x: 220,y: -10},text: {x: 16,y: -20}},image: {gapX: 50,gapY: 22,w: 76,h: 149},text: {gapX: 35,gapY: -1.5,scaleX: 1.3,scaleY: 1,skewH: .72,skewV: -1.5,moveX: 191,moveY: 32,fontSize: 24},linebreak: {image: {x: -52,y: 36},text: {x: -.8,y: 35.5}}}; | |
return $("#save").click(); | |
}; | |
$('[class="button-sharp"][data-size="facebook"]').click(); | |
setTimeout(function(){$('[data-color="#ffffff"]').attr('data-color', (userColor == '' ? '#aaa' : userColor)).click().attr('data-color', '#ffffff');}, 500); | |
return true; | |
} else { | |
alert('這個位置不適用哦,麻煩請到正確的網址使用QQ,請按確定後會自動導向該網址'); | |
location.href = 'http://small-upup.upuptoyou.com/'; | |
return false; | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment