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
/** | |
* @undo-all-facebook-ad-preferences.js | |
* Undo/Remove/Delete All Facebook Ad Preferences. | |
* Page: 'Your Ad Preferences' | |
* URL: https://www.facebook.com/ads/preferences/ | |
* Instructions: Just paste each section to your Console. | |
*/ | |
// Expand each Category | |
var selector = "div > div > div > div > ul > li"; |
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
// For automated authentication of .ovpn files | |
<username> | |
<password> | |
// Ensure login.conf is in the same directory as your .ovpn file | |
// Add the arguments 'auth-user-pass login.conf' to your .ovpn file | |
// To batch edit this multiple files, see: gist.github.com/leotm/377efbde1e7037bbebfa |
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
// So I wrote this purely to reverse getting hacked | |
// Resulting in following an extra 800 random people | |
// Always de-activate third-party tools after API authorisation! | |
// Enter into your browser console | |
var items = document.querySelectorAll("#content > div > img"); | |
for (var i = 0; i < items.length; i++) { | |
// Simulates mouse hover over user images to open tooltips | |
// (Prevously tried amending the results classes and attributes) |
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
// Purpose: To add more social profiles | |
// Open: page.is/<username>#editProfile | |
// Run in browser console | |
document.getElementById('links_container').innerHTML = '<div class="edit_item item_custom item_connect personal_link_add"> <div class="item_inner"> <a href="#">Add link</a> </div> <span class="icon-arrow"></span> </div>'; |
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
@rem Do not use "echo off" to not affect any child calls. | |
@setlocal | |
@rem Get the absolute path to the current directory, which is assumed to be the | |
@rem Git installation root. | |
@for /F "delims=" %%I in ("%~dp0") do @set git_install_root=%%~fI | |
@set PATH=%git_install_root%\bin;%git_install_root%\mingw\bin;%git_install_root%\cmd;%PATH% | |
@if not exist "%HOME%" @set HOME=%USERPROFILE%\Documents\GitHub | |
@if not exist "%HOME%" @set HOME=%USERPROFILE% |
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
Target: C:\Windows\System32\cmd.exe /c ""C:\Users\<User>\AppData\Local\GitHub\<Git folder>\bin\sh.exe" --login -i" | |
Start in: C:\Users\<User>\Documents\GitHub |
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
Quick Launch: C:\Users\<User>\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch | |
TaskBar: C:\Users\<User>\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar | |
Start Menu: C:\Users\<User>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs | |
Links: C:\Users\<User>\.cr3\Links |
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
// This will sort all IPVanish config/.ovpn files (e.g. ipvanish-BE-Brussels-bru-b01.ovpn) | |
// into respective folders (e.g. ipvanish-BE) | |
var glob = require('glob'); | |
var fs = require('fs'); | |
glob('*.ovpn', function(err, files) { | |
if (err) { throw err; } | |
files.forEach(function(item, index, array) { | |
// Create the folders |
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
var fs = require("fs"); | |
var glob = require("glob"); | |
glob('*.ovpn', function (err, files) { | |
if (err) { throw err; } | |
files.forEach(function(item,index,array){ | |
// Each .ovpn file will use login.conf containing un and pw | |
fs.appendFile(item, ' auth-user-pass login.conf', function (err) {}); | |
}); | |
}); |