Greasy Fork

TW night mode

The West night mode

目前为 2018-04-01 提交的版本。查看 最新版本

// ==UserScript==
// @name               TW night mode
// @version            1.00
// @description        The West night mode
// @author             HALCON DE ORO ty hiroaki
// @include 	       https://*.the-west.*/game.php*
// @namespace https://greasyfork.org/users/6511
// ==/UserScript==


(function(fn) {
	var newScript = document.createElement('script');
	newScript.setAttribute("type", "application/javascript");
	newScript.textContent = '(' + fn + ')();';
	(document.body || document.head || document.documentElement).appendChild(newScript);
	newScript.parentNode.removeChild(newScript);
})(function() {
  
    TWNM = {
        version: '1.0',
        name: 'TW night mode',
        author: 'HALCON DE ORO ty hiroaki',
        minGame: '2.01',
        maxGame: Game.version.toString(),
        website: 'https://greasyfork.org/es/scripts/6314',

};   

  TheWestApi.register('TWNM', TWNM.name, TWNM.minGame, TWNM.maxGame, TWNM.author, TWNM.website).setGui('With this script you put the game in night mode');
 
          
      
	$("#map").css({ "filter": "brightness(50%)", "-webkit-filter": "brightness(50%);" });
  
});