Created
          May 14, 2018 15:22 
        
      - 
      
- 
        Save totomz/7dedd1091090e7f0066e2b2629e2b9a3 to your computer and use it in GitHub Desktop. 
    Greasemonkey/Tampermonkey redirect php.net pages to the ENG version
  
        
  
    
      This file contains hidden or 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 PHP Manual redirect | |
| // @namespace https://github.com/totomz | |
| // @version 0.1 | |
| // @description Force contents fro php.net/manual to be served in ENG! | |
| // @author You | |
| // @match http://php.net/manual/* | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| if(window.location.href.match(/\/it\//)) { | |
| window.location.href = window.location.href.replace(/\/it\//, '/en/' ) | |
| } | |
| })(); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment