Skip to content

Instantly share code, notes, and snippets.

tell application "Spotify"
return player position
end tell
-- returns 13.37
tell application "Spotify"
return "" & player position
end tell
@papoms
papoms / fake-referrer.phantom.js
Last active July 1, 2023 23:59
Fake Referrer with Phantomjs
var system = require('system');
// Exit in case of wrong parameter count.
if (system.args.length !== 3) {
console.log('Usage: scriptname targetUrl referrer');
console.log('example: $> phantomjs fake-referrer.phantom.js http://example.com http://referrer.example.com');
phantom.exit();
}
// Set the important pieces