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 ADP | |
| // @namespace https://expert.hcm.adp.com/ | |
| // @version 0.7.4 | |
| // @description Previsão de saída (com tolerância de 10 min), saldo do banco de horas, pagamentos a receber e confirmação de batida no ADP eXpert Brasil. | |
| // @author Thyago | |
| // @license MIT | |
| // @icon https://www.adp.com/favicon.ico | |
| // @match https://expert.hcm.adp.com/expert2/v5/* | |
| // @run-at document-idle |
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
| <?php | |
| // Don't include the opening tag | |
| function html5_insert_image( $html, $id, $caption, $title, $align, $url, $size, $alt ) { | |
| $src = wp_get_attachment_image_src( $id, $size, false ); | |
| $html5 = "<figure id=\"post-$id media-$id\" class=\"align-$align\">"; | |
| if ( $url ) { | |
| $html5 .= "<a href=\"$url\" class=\"image-link\"><img src=\"$src[0]\" alt=\"$alt\" /></a>"; | |
| } else { |
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
| <?php | |
| /** | |
| * Filter a few parameters into YouTube oEmbed requests | |
| * | |
| * @link http://goo.gl/yl5D3 | |
| */ | |
| function iweb_modest_youtube_player( $html, $url, $args ) { | |
| return str_replace( '?feature=oembed', '?feature=oembed&modestbranding=1&showinfo=0&rel=0', $html ); | |
| } | |
| add_filter( 'oembed_result', 'iweb_modest_youtube_player', 10, 3 ); |