Warning: fopen(/www/sites/update.greasyfork.icu/index/store/temp/a6b3e0136744cb085e08919cf56bc8a0.js): failed to open stream: No space left on device in /www/sites/update.greasyfork.icu/index/scriptControl.php on line 65
// ==UserScript==
// @name gbfblacklist
// @namespace http://tampermonkey.net/
// @version 0.6
// @description try to take over the world!
// @author Mayako
// @match http://game.granbluefantasy.jp/
// @resource bl https://raw.githubusercontent.com/mayako21126/gbfBlacklist/master/blackList.json
// @run-at document-idle
// @grant GM_getResourceText
// @grant GM_getResourceURL
// @grant GM_xmlhttpRequest
// @downloadURL https://update.greasyfork.icu/scripts/381144/gbfblacklist.user.js
// @updateURL https://update.greasyfork.icu/scripts/381144/gbfblacklist.meta.js
// ==/UserScript==
(function() {
'use strict';
console.log(window.document.location.href.indexOf('http://game.granbluefantasy.jp/#lobby/room/member/')+'a')
if(window.document.location.href.indexOf('http://game.granbluefantasy.jp/#lobby/room/member/')>=0){
ready()
}else{
window.onhashchange = function(e){
console.log(e.newURL.indexOf('http://game.granbluefantasy.jp/#lobby/room/member/'))
if(e.newURL.indexOf('http://game.granbluefantasy.jp/#lobby/room/member/')>=0){
ready()
}
}
}
// Your code here...
})();
function ready() {
if(window.$){
check()
}else{
setTimeout(function(){
check()
},6000)
}
}
function check() {
GM_xmlhttpRequest({
method: 'GET',
url: 'https://raw.githubusercontent.com/mayako21126/gbfBlacklist/master/blackList.json',
onload: function(data) {
var list = JSON.parse(data.response);
var length = $('.btn-lis-user').length;
var rArr = []
for(var i = 0;i