PHP Documentation Columnify

View PHP Document as multi column

Από την 29/08/2015. Δείτε την τελευταία έκδοση.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name         PHP Documentation Columnify
// @version      1.5
// @description  View PHP Document as multi column
// @author       Shakil Shahadat
// @match        http://php.net/manual/en/
// @match        http://php.net/manual/en/index.php
// @grant        none
// @namespace https://greasyfork.org/users/6404
// ==/UserScript==

document.querySelector('.chunklist').style.WebkitColumnCount = 4;
document.querySelector('.chunklist').style.MozColumnCount = 4;
document.querySelector('.chunklist').style.ColumnCount = 4;

document.querySelector('.chunklist').style.WebkitColumnRuleStyle = 'dotted';
document.querySelector('.chunklist').style.MozColumnRuleStyle = 'dotted';
document.querySelector('.chunklist').style.ColumnRuleStyle = 'dotted';

document.querySelector('.chunklist').style.WebkitColumnRuleWidth = '1px';
document.querySelector('.chunklist').style.MozColumnRuleWidth = '1px';
document.querySelector('.chunklist').style.ColumnRuleWidth = '1px';


document.querySelector('.page-tools').style.display = 'none';
document.querySelector('#usernotes').style.display = 'none';
document.querySelector('nav').style.position = 'absolute';

document.querySelector('.info').style.display = 'none';

//Dynamically add target="_blank" to the anchor links
for ( var i = 0; i < document.querySelectorAll('a').length; i++ )
{
    document.querySelectorAll('a')[i].setAttribute("target","_blank");
    //document.querySelectorAll('a')[i].style.textDecoration = 'none';
}