From 94733c7743dc03edf38a324a8c318951b3a644d8 Mon Sep 17 00:00:00 2001 From: j0be Date: Mon, 30 Jan 2017 17:56:50 -0500 Subject: [PATCH] Adding Cachebusting --- bookmarklet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookmarklet.js b/bookmarklet.js index 902cc90..c11ecef 100644 --- a/bookmarklet.js +++ b/bookmarklet.js @@ -1 +1 @@ -javascript:(function() {window.bookmarkver = '1.1'; if (document.location.hostname.split('.').slice(-2).join('.') == 'reddit.com' && typeof $ !== 'undefined') {$.ajax({url: 'https://raw.githubusercontent.com/j0be/PowerDeleteSuite/master/powerdeletesuite.js'}).then(function(data) {var str = ''; if ($('#pd-script').length === 0) {$('head').append(str); } else {$('#pd-script').replaceWith(str); } }, function() {alert('Error retreiving PowerDeleteSuite from github'); }); } else {if(confirm('This script is designed to be run from your user profile on reddit. Would you like to go there now?')) {document.location = 'http://reddit.com/u/me'; } } })(); +javascript:(function() {window.bookmarkver = '1.1'; if (document.location.hostname.split('.').slice(-2).join('.') == 'reddit.com' && typeof $ !== 'undefined') {$.ajax({url: 'https://raw.githubusercontent.com/j0be/PowerDeleteSuite/master/powerdeletesuite.js?'+(new Date().getDate())}).then(function(data) {var str = ''; if ($('#pd-script').length === 0) {$('head').append(str); } else {$('#pd-script').replaceWith(str); } }, function() {alert('Error retreiving PowerDeleteSuite from github'); }); } else {if(confirm('This script is designed to be run from your user profile on reddit. Would you like to go there now?')) {document.location = 'http://reddit.com/u/me'; } } })();