Last active
December 10, 2017 17:15
-
-
Save x3388638/08c0f0a4cd0aa056e0dc5157cb027fb0 to your computer and use it in GitHub Desktop.
仙境傳說 守護永的愛 RO 耶誕城揪伴裝飾你的聖誕樹 海豹 不求人,免帳號無限佈置 (demo: https://drive.google.com/file/d/1iwh8chpGQxUXhS1tmDlIgyn9h8zadB2m/view?usp=sharing)
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 RO_Seal | |
// @namespace YY | |
// @version 1.0 | |
// @description RO Seal | |
// @author Y.Y. | |
// @include /https:\/\/rom\.gnjoy\.com\.tw\/event_xmastree\/frienddecorate\?code=.+/ | |
// @include /https:\/\/rom\.gnjoy\.com\.tw\/event_xmastree\/friendlogin\?code=.+/ | |
// @match https://www.wegames.com.tw/site/login | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
window._alert = window.alert; | |
window.alert = function () {}; | |
if (location.host === 'rom.gnjoy.com.tw') { | |
if (!!window.login) { | |
window.login(); | |
} else { | |
if (!$('.btn_arrangement').size()) { | |
window._alert('完成'); | |
return; | |
} | |
$.post('https://rom.gnjoy.com.tw/event_xmastree/frienddecorate?code=' + window.location.href.split('code=')[1],{ | |
YII_CSRF_TOKEN: $('input[name="YII_CSRF_TOKEN"]').val() | |
}, window.logout); | |
} | |
} else { | |
$.ajax({ | |
url: 'https://www.wegames.com.tw/Third/facebook', | |
type: 'post', | |
data: { | |
token_for_business: ((Math.random()*10e17).toString(16) + (Math.random()*10e17).toString(16)).substring(0,16), | |
name: Date.now().toString(16), | |
id: Math.random()*10e17, | |
YII_CSRF_TOKEN: $('input[name="YII_CSRF_TOKEN"]').val() | |
}, | |
success: function () { | |
window.location.href = 'https://www.wegames.com.tw/member/event_login_check'; | |
} | |
}); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment