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
<?php | |
/* | |
Plugin Name: BubbleJax Wrapper | |
Plugin URI: http://bubblelifemedia.com/ | |
Description: Name pending. | |
Author: Tommy | |
Version: 0.1 | |
Author URI: http://bubblelifemedia.com/ | |
*/ |
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
// Paste this into your JS console, love. | |
var sNeedle = prompt("Find what?").toLowerCase(); | |
var tds = document.getElementsByClassName("default"); | |
var iTdCount = tds.length; | |
for (var i = 0; i < iTdCount; i++) { | |
var td = tds[i]; | |
var sHtml = td.innerHTML.toLowerCase(); | |
if (sHtml.indexOf(sNeedle) > -1) { |
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
(function () { | |
// only run on IPs and browserling tunnel | |
if ((!!parseInt(location.host.replace(/\./g, ''), 10)) || (!!location.href.match('browserling'))) { | |
// fake out DOM to get URL ports | |
function getPort(sUrl) { | |
var a = document.createElement("a"); | |
a.href = sUrl; | |
return a.port; |
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
javascript:(function(){window.onbeforeunload=function(){return '';}})(); |
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
data:text/html,Loading...<script>document.body.innerHTML=prompt("html?")</script> |
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
javascript:(function(){location.search="?"+(+new Date());}()) |
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 words = (function(){ | |
var sWords = document.body.innerText.toLowerCase().trim().replace(/[,;.]/g,'').split(/[\s\/]+/g).sort(); | |
var iWordsCount = sWords.length; // count w/ duplicates | |
// array of words to ignore | |
var ignore = ['and','the','to','a','of','for','as','i','with','it','is','on','that','this','can','in','be','has','if']; | |
ignore = (function(){ | |
var o = {}; // object prop checking > in array checking | |
var iCount = ignore.length; |
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
data:text/html, <pre id="pre"></pre> <script> document.getElementById("pre").innerHTML = JSON.stringify( (function(s){ var s = (!!s.match(/\?/)) ? s.substr(s.indexOf("?")+1) : s; var qs = s.split("+").join(" "), params = {}, tokens, re = /[?&]?([^=]+)=([^&]*)/g; while (tokens = re.exec(qs)) { params[decodeURIComponent(tokens[1])] = decodeURIComponent(tokens[2]); } return params; } (prompt("?=?"))), null, 4 ); </script> |
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
// Given a number, find the next higher number which has the exact same set of digits as the original number | |
// http://stackoverflow.com/questions/9368205/given-a-number-find-the-next-higher-number-which-has-the-exact-same-set-of-digi | |
function nextUp(iNumber){ | |
var sDigitsSorted = iNumber.toString().split('').sort().join(''); | |
var aPermutations = (function(){ | |
var i = parseInt(iNumber.toString().split('').sort().reverse().join(''),10) + 1, | |
a = []; |
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
(function(win, doc, body){ | |
var iCounter = 0, sUrl = doc.location.href, sTitle = doc.title || sUrl, | |
iMinutes = parseFloat(prompt("Seconds till refresh", "60"),10) || 60; | |
doc.head.innerHTML = body.innerHTML = ''; | |
body.style.overflow = 'hidden'; | |
var iframe = win.iframe = doc.createElement("iframe"); | |
iframe.src = doc.location.href; |