Skip to content

Instantly share code, notes, and snippets.

View atlemo's full-sized avatar

Atle Mo atlemo

View GitHub Profile
@ruario
ruario / chrome-ua-test.md
Last active January 24, 2023 11:40
Launching Google Chrome with a Vivaldi User Agent

The following will allow you to test Chrome with a Vivaldi user agent. Shutdown Chrome and start a Terminal (or cmd.exe on Windows), then paste in the code that is relevant for your platform and press “Enter”–you can triple-click to select an entire line.

Testing with Chrome

NOTE: There is little point testing in Vivaldi because old versions already had workarounds for these specific issues and from 2.10 onwards we use a Chrome User Agent string.

Windows

"%PROGRAMFILES(X86)%\Google\Chrome\Application\chrome.exe" --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.94 Safari/537.36 Vivaldi/2.10.1745.21"
@jeremyclark13
jeremyclark13 / gist:2481191
Created April 24, 2012 16:25
WordPress simple twitter follower count function
<?php
/**
* Simple twitter feed
*
* @param string $user user of twitter feed to retrieve.
*
* @return string of formatted API data
*/
function twitter_followers($user = 'clarktechnet'){