Skip to content
View onwp's full-sized avatar

Block or report onwp

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. Chained select (listbox) on tinymce ... Chained select (listbox) on tinymce window (modal). For WordPress.
    1
    /* global jQuery, iziToast */
    2
    
                  
    3
    // Chained select (listbox) on tinymce window (modal)
    4
    tinymce.PluginManager.add('address_shortcode_inserter', function (editor) {
    5
        var addresses = [];
  2. Find unused CSS classes in html,php,... Find unused CSS classes in html,php,js files for multiple themes. Run this script in "themes" directory of Wordpress
    1
    #!/bin/bash
    2
    for dir in $(ls -d */ | grep -v cache | grep -v node_modules | cut -f1 -d'/'); do
    3
        (
    4
            echo "checking $dir :";
    5
            pushd "$dir" &>/dev/null || {
  3. Bash script to find unused SCSS vari... Bash script to find unused SCSS variables
    1
    #!/usr/bin/env bash
    2
    # HOW TO USE
    3
    # Save code to file
    4
    # Run as "SCRIPT_FILE_NAME SASS_DIRECTORY"
    5
    # e.g "./find_unused_scss_variables.sh ./sass"
  4. MacOS Desktop Icons on Left. It rear... MacOS Desktop Icons on Left. It rearranges your desktop icons, keeps it aligned to the left side of screen.
    1
    -- https://gist.github.com/mrienstra/8330528
    2
    -- Based on https://www.tuaw.com/2012/12/24/applescript-desktop-icon-race/
    3
    -- Inspired by https://namesakecomic.com/comic/happy-new-year-from-namesake/#comment-1182035013
    4
    
                  
    5
    -- Rearranges Desktop icons to flow from left to right, top to bottom.
  5. Tidy up your desktop icons on mac Tidy up your desktop icons on mac
    1
    tell application "System Events"
    2
    	
    3
    	tell application "Finder" to activate desktop
    4
    	
    5
    	tell process "Finder"
  6. Check "Translate" option for all cus... Check "Translate" option for all custom fields in WPML plugin
    1
    // Scroll into Custom Fields settings
    2
    document.querySelector(".wpml-custom-fields-settings").scrollIntoView();
    3
    
                  
    4
    // Click on 'Display All' button
    5
    jQuery(".wpml-custom-fields-settings .display-all").click();