eg24_fixer

remove subpar game authors from eg24

目前為 2015-04-21 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name       eg24_fixer
// @namespace  junkus
// @version    0.3.4
// @description  remove subpar game authors from eg24
// @match      http://www.escapegames24.com/*
// @copyright  2012+, You
// ==/UserScript==

if (document.addEventListener){
  document.addEventListener("DOMContentLoaded", durf(), false);
}

function durf() {
    if(typeof unsafeWindow.jQuery == 'undefined'){
      var jq = document.createElement('script');
      jq.src = "//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js";
      document.getElementsByTagName("head")[0].appendChild(jq);
    }
}

function eg24fix(){
    if(!$.ready){
        setTimeout(eg24fix,100);
        return;
    }
    $('.post').hide();
    $('.post-body').each(
        function(){
            var $this=$(this);
            if($this.text().toLowerCase().match(/(e333e|kameotoko|zxcvbnm|ninjamotion|hiddenogames|darakeguma|yonashi|girlstand|snapbreak|escapegames365|girlsgames|[0-9]escape|tomolasido|3csgames|similar rooms|picture completion|sonohigurash?i|smileclicker|yalgames|heartslink|[a-z]escapegame|pixelkobo|eightgames|sniffmouse|selfdefiant|xtragamingz|the ?escape ?games|mousecity|defygames|games ?[24]|infoweb|evillemon|gazzyboy|ena ?games|gillygames|pencilkids|yotreat|abroy|gamesnovel|yoopygames|yeahgame|mixgames1|ainars|myhiddengame|123bee|mougle|inkagames|esklavos|d(r|octor)\.?\sfou|wowescape)/g)){
                $this.closest('.post').remove();
            }
            var t=$this.find('span div');
            t.text(t.text().replace('is another','is a'));
            t=$this.find('span span');
            t.css({float:'left','padding-right':'1em'});
        }
    );
    $('.post-title').each(
        function(){
            var $this=$(this);
            if($this.text().toLowerCase().match(/(shadow kings|ads by google|random game|goodgame|ourworld|escape the museum 2)/g)){
                $this.closest('.post').remove();
            }
        }
    );
    $('.post').show();
    var next=$('#blog-pager-older-link');
    next.attr('href',next.attr('href').replace('results=20','results=1000'));
    $('#side-wrapper1,#side-wrapper2').remove();
    $('#main,#main-wrapper').css('width','auto');
}

eg24fix();