Skip to content

Instantly share code, notes, and snippets.

@TheEpicFace007
Last active March 11, 2021 01:44
Show Gist options
  • Save TheEpicFace007/06e46c8086f87441c0a0d7817528364f to your computer and use it in GitHub Desktop.
Save TheEpicFace007/06e46c8086f87441c0a0d7817528364f to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name QuickDontbugmenot
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Quickly view burner account for the web page on dont bug me not
// @author ViniDalvino
// @match *
// @grant none
// ==/UserScript==
(() => {
'use strict';
const regex = /((?:(https?):\/\/)?((?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[0-9][0-9]|[0-9])\.(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[0-9][0-9]|[0-9])\.)(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[0-9][0-9]|[0-9])\.)(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[0-9][0-9]|[0-9]))|(?:(?:(?:\w+\.){1,2}[\w]{2,3})))(?::(\d+))?((?:\/[\w]+)*)(?:\/|(\/[\w]+\.[\w]{3,4})|(\?(?:([\w]+=[\w]+)&)*([\w]+=[\w]+))?|\?(?:(wsdl|wadl))))/gm;
const page_url = document.location.href;
try {
let result = regex.exec(page_url);
window.open(`http://bugmenot.com/view/${result[3]}`, "Don't bug me not", "menubar=no,location=yes,resizable=yes,scrollbars=yes,status=yes");
}
catch (e) {
alert("Could not view passwords for " + page_url + " due to the expection " + e);
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment