Skip to content

Instantly share code, notes, and snippets.

@JavaScript-Packer
JavaScript-Packer / right-click-menu.htm
Created April 3, 2016 07:27
Replace the right click menu on your webpage using JavaScript!
<html><head><title>Right Click Context Menu JavaScript Replacement - WHAK.com</title></head><body bgcolor="silver"><h1>TOP</h1><h3>Right Click Menu In JavaScript</h3><hr size="7000" color="gray">
<script>
function a(b){c=document.all?event.clientX+document.body.scrollLeft:document.a?b.x+window.pageXOffset:b.clientX+window.pageXOffset;d=document.all?event.clientY+document.body.scrollTop:document.a?b.y+window.pageYOffset:b.clientY+window.pageYOffset}var e,f,g,c=0,d=0;void 0!=document.addEventListener?document.addEventListener("mousemove",a,!0):document.a&&document.captureEvents(Event.b|Event.c|Event.f);document.onmousemove=a;document.oncontextmenu=function(){return!1};document.onmousedown=function(b){3==b.which&&(document.getElementById("contextmenu").style.left=c+"px",document.getElementById("contextmenu").style.top=d+"px",document.getElementById("contextmenu").style.visibility="visible")};document.onmouseup=function(b){1==b.which&&(document.getElementById("contextmenu").style.visibility="hidden")};e=250,g=doc
@JavaScript-Packer
JavaScript-Packer / triple-click-top-of-page.htm
Created April 1, 2016 09:42
Triple clicker JavaScript function, click 3 times fast! Adjust to higher like four or five clicks if you want!
<body>
<h1 onclick="window.scroll(0,7000)"><u style="color:blue">Click HERE to go to bottom!</u></h1>
<script>
window.addEventListener('click', function (x) {
if (x.detail === 3) {
window.scroll(0,0);
}
});
@JavaScript-Packer
JavaScript-Packer / for-the-gay-guys.js
Last active July 21, 2020 00:36
Gay related bookmarklets (best for Chrome or FireFox web browser). Hacks to get free large images on gay dating/hookup sites with a free membership account. Add a link too bookmarks, then edit URL to be the JavaScript code provided. Made by www.WHAK.com
/* Go to http://jsfiddle.net/5v5r8npk/ for drag & drop link marklets, easiest way to add to bookmarks! */
// BareBackRT.com
javascript:var _='',$=document,whaks = document.getElementsByTagName("img");for (var i = 0, whak; whak = whaks[i]; i++) {_+='<img src="'+whak.src.replace(/\x26\x73\x3d/g,"&s=1")+'"> ';};$.body.innerHTML=_+'<hr>Visit <a href="http://www.whak.com">www.WHAK.com</a><hr>'+$.body.innerHTML;void 0;
// Adam4Adam.com
javascript:var $=document;$.body.innerHTML='<img src=%22'+large_img+'%22><hr>Visit <a href=%22http://www.whak.com%22>www.WHAK.com</a><hr>'+$.body.innerHTML;void 0;
// Squirt.org
javascript:var _='',$=document,whaks = document.getElementsByTagName(%22img%22);for (var i = 0, whak; whak = whaks[i]; i++) {_+='<img src=%22'+whak.src.replace(/\x26\x70\x73\x3d/g,%22&ps=1&%22)+'%22> ';};$.body.innerHTML=_+'<hr>Visit <a href=%22http://www.whak.com%22>www.WHAK.com</a><hr>'+$.body.innerHTML;void 0;
@JavaScript-Packer
JavaScript-Packer / power-top.js
Created March 26, 2016 06:33
Bookmarklet to get a web page back to the top without having to scroll all the way back. Add a link too bookmarks, then edit URL to be the JavaScript code provided.
javascript:void(function(){window.scroll(0,0)}());void(0);
@JavaScript-Packer
JavaScript-Packer / holy-bible-random-verse.js
Created March 25, 2016 02:07
Random Verse From Holy Bible. Made by www.BibleThumper.net
var randomverse=new Array();
var versetitle=' <font size="4"><b><a href="http://www.holybibleverse.com">Random Bible Verse</a></b><br /></font>';
// by www.BibleThumper.net
randomverse[1]='Set your affection on things above, not on things on the earth.<br/><b>Colossians 3:2</b>';
randomverse[2]='For all have sinned and come short of the glory of God<br/><b>Romans 3:23</b>';
randomverse[3]='Come unto me, all ye that labor and are heavy laden, and I will give you rest.<br/><b>Matthew 11:28</b>';
randomverse[4]='Not everyone that saith unto me, Lord, Lord, shall enter into the kingdom of heaven; but he that doeth the will of my father which is in heaven.<br/><b>Matthew 7:21</b>';
randomverse[5]='For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life.<br/><b>John 3:16</b>';
randomverse[6]='For the wages of sin is death, but the gift of God is eternal life in Christ Jesus our Lord<br/><b>Romans 6:23</b>';
randomverse[7]='Let t
@JavaScript-Packer
JavaScript-Packer / (de)obfuscate-IP-address.js
Last active December 29, 2022 16:24
This simple JavaScript function set/utility provides the opportunity to obfuscate an IP address or decipher an obfuscated IP. Made by www.whak.ca
function ip2decimal(ip) {
ip = ip.split(".");
var e, w = 16777216, x = 65536, y = 256, a = eval(ip[0]), b = eval(ip[1]), c = eval(ip[2]), d = eval(ip[3]);
e = a * w + b * x + c * y + d;
return e;
}
function decimal2ip(ip) {
var w = 16777216, x = 65536, y = 256, e = eval(ip), a = e / w, z = e - (a - e % w / w) * w, b = z / x, q = z - (b - z % x / x) * x, c = q / y, d = q - (c - q % y / y) * y;
return parseInt(a) + "." + parseInt(b) + "." + parseInt(c) + "." + parseInt(d);
@JavaScript-Packer
JavaScript-Packer / compare-lists-for-new-and-removed.htm
Last active April 3, 2016 07:45
Compare older list to a newer list to see changes (what is new and what is now gone). Working on a bookmarklet for FaceBook to find New Freinds and Friends that left (unfriended) you.
<html><head><title>Compare 2 Lists For Differences. Changes Added To List &amp; What Was Removed From Original List</title></head><body>
<script>
var s1 = 'Kvn Mrffy Brwn\n\
Lrran Brwn Lavall\n\
Rbrt Jsph\n\
Wayn Brstw\n\
Lrr Brwn Tschrwnsk\n\
Krs Oltn\n\
Paln Bckndal - Glnvw Park Scndary Schl\n\
@JavaScript-Packer
JavaScript-Packer / encrypt-decrypt-JS-JSE.asp
Last active January 27, 2016 23:21
Creates JS file on server side, encodes it as different file and then decodes it afterwards as separate file
<%
dim pathz
pathz = replace(Server.MapPath(Request.ServerVariables("PATH_INFO")), "encrypt-decrypt-JS-JSE.asp", "")
dim faith, holy
set faith=Server.CreateObject("Scripting.FileSystemObject")
on error resume next
set holy=faith.CreateTextFile(pathz & "tester.js")
on error resume next
holy.WriteLine("window.location.href='http://www.holybiblesearch.net';")
on error resume next
@JavaScript-Packer
JavaScript-Packer / LZ-string.asp
Created January 27, 2016 23:07
LZ-string.asp
<!DOCTYPE html><html><head></head><body><script><%
'on error resume next
dim str,zapped,unzapped
str="function randomSite() {\n var tempWebSite, tempValueSetting, onlineWebsiteURL = new Array();\n onlineWebsiteURL[0] = 'http://www.WHAK.com';\n onlineWebsiteURL[1] = 'http://www.ScriptCompress.com';\n onlineWebsiteURL[2] = 'http://www.Trollize.com';\n onlineWebsiteURL[3] = 'http://www.Holy-Bibles.com';\n onlineWebsiteURL[4] = 'http://www.Make-A-Meme.com';\n onlineWebsiteURL[5] = 'http://www.BoobSigns.com';\n onlineWebsiteURL[6] = 'http://www.SeekFreak.com';\n onlineWebsiteURL[7] = 'http://www.Is-A-Jerk.com';\n onlineWebsiteURL[8] = 'http://www.HolyBibleVerse.com';\n onlineWebsiteURL[9] = 'http://www.HolyBibleSearch.com';\n onlineWebsiteURL[10] = 'http://www.SirSeek.com';\n onlineWebsiteURL[11] = 'http://www.TXT2PIC.com';\n onlineWebsiteURL[12] = 'http://www.13KG.com';\n onlineWebsiteURL[13] = 'http://www.Nerdful.com';\n onlineWebsiteURL[14] = 'http://www.FanSignGenerator.com';\n onlineWebsiteUR
@JavaScript-Packer
JavaScript-Packer / wtf.js
Created January 26, 2016 04:38
Using mostly brackets. It simply runs alert("WHAK.ca") as the end result.
eval(eval("'\\" + [ +!+[] ] + [ !+[] + !+[] + !+[] + !+[] ] + [ +!+[] ] + "\\" + [ +!+[] ] + [ !+[] + !+[] + !+[] + !+[] + !+[] ] + [ !+[] + !+[] + !+[] + !+[] ] + "\\" + [ +!+[] ] + [ !+[] + !+[] + !+[] + !+[] ] + [ !+[] + !+[] + !+[] + !+[] + !+[] ] + "\\" + [ +!+[] ] + [ !+[] + !+[] + !+[] + !+[] + !+[] + !+[] ] + [ !+[] + !+[] ] + "\\" + [ +!+[] ] + [ !+[] + !+[] + !+[] + !+[] + !+[] + !+[] ] + [ !+[] + !+[] + !+[] + !+[] ] + "\\" + [ !+[] + !+[] + !+[] + !+[] + !+[] ] + [ +[] ] + "\\" + [ !+[] + !+[] + !+[] + !+[] ] + [ !+[] + !+[] ] + "\\" + [ +!+[] ] + [ !+[] + !+[] ] + [ !+[] + !+[] + !+[] + !+[] + !+[] + !+[] + !+[] ] + "\\" + [ +!+[] ] + [ +!+[] ] + [ +[] ] + "\\" + [ +!+[] ] + [ +[] ] + [ +!+[] ] + "\\" + [ +!+[] ] + [ +!+[] ] + [ !+[] + !+[] + !+[] ] + "\\" + [ !+[] + !+[] + !+[] + !+[] + !+[] ] + [ !+[] + !+[] + !+[] + !+[] + !+[] + !+[] ] + "\\" + [ +!+[] ] + [ !+[] + !+[] + !+[] + !+[] ] + [ !+[] + !+[] + !+[] ] + "\\" + [ +!+[] ] + [ !+[] + !+[] + !+[] + !+[] ] + [ +!+[] ] + "\\" + [ !+[] + !+