-
-
Save ashramwen/ce91a709428cba947890484556ce7b0f to your computer and use it in GitHub Desktop.
Revisions
-
ashramwen revised this gist
Jan 28, 2021 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -10,8 +10,6 @@ var _wr = function(type) { }; history.pushState = _wr('pushState'), history.replaceState = _wr('replaceState'); window.addEventListener('replaceState', function(e) { if ( location.href.match(/[&?]ref_=/) ) { console.warn('THOSE FUCKERS GAVE ME A ?_ref AGAIN!'); -
rudiedirkx created this gist
Sep 4, 2014 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ var _wr = function(type) { var orig = history[type]; return function() { var rv = orig.apply(this, arguments); var e = new Event(type); e.arguments = arguments; window.dispatchEvent(e); return rv; }; }; history.pushState = _wr('pushState'), history.replaceState = _wr('replaceState'); window.addEventListener('replaceState', function(e) { if ( location.href.match(/[&?]ref_=/) ) { console.warn('THOSE FUCKERS GAVE ME A ?_ref AGAIN!'); } });