Skip to content

Instantly share code, notes, and snippets.

@Haraguroicha
Last active January 26, 2016 08:22
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Haraguroicha/5690084 to your computer and use it in GitHub Desktop.
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
(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