fixed typo #pd_style in line 140 powerdeletesuite

This commit is contained in:
Sandeep S 2023-11-28 19:29:23 +05:30
parent 781dd1e7a6
commit 77d90a7232
2 changed files with 654 additions and 349 deletions

View file

@ -1,22 +1,34 @@
javascript: (function() { javascript: (function () {
window.bookmarkver = '1.4'; window.bookmarkver = "1.4";
var isReddit = document.location.hostname.split('.').slice(-2).join('.') === 'reddit.com'; var isReddit =
var isOverview = document.location.href.match(/\/overview\b/); document.location.hostname.split(".").slice(-2).join(".") === "reddit.com";
if (isReddit && isOverview) { var isOverview = document.location.href.match(/\/overview\b/);
var cachBustUrl = 'https://raw.githubusercontent.com/j0be/PowerDeleteSuite/master/powerdeletesuite.js?' + (new Date().getDate()); if (isReddit && isOverview) {
fetch(cachBustUrl).then(function(response) { var cachBustUrl = `?${new Date().getDate()}`;
return response.text(); // var cachBustUrl = 'https://raw.githubusercontent.com/j0be/PowerDeleteSuite/master/powerdeletesuite.js?' + (new Date().getDate());
}).then(function(data) { var cachBustUrl =
var script = document.createElement('script'); "hhttps://raw.githubusercontent.com/saandman/PowerDeleteSuite/master/powerdeletesuite.js?" +
script.id = 'pd-script'; new Date().getDate();
script.innerHTML = data; fetch(cachBustUrl)
document.getElementsByTagName('head')[0].appendChild(script); .then(function (response) {
}).catch(function() { return response.text();
alert('Error retreiving PowerDeleteSuite from github'); })
}); .then(function (data) {
} else if (confirm('This script can only be run from your own user profile on reddit. Would you like to go there now?')) { var script = document.createElement("script");
document.location = 'https://old.reddit.com/u/me/overview'; script.id = "pd-script";
} else { script.innerHTML = data;
alert('Please go to your reddit profile before running this script'); document.getElementsByTagName("head")[0].appendChild(script);
} })
.catch(function () {
alert("Error retreiving PowerDeleteSuite from github");
});
} else if (
confirm(
"This script can only be run from your own user profile on reddit. Would you like to go there now?"
)
) {
document.location = "https://old.reddit.com/u/me/overview";
} else {
alert("Please go to your reddit profile before running this script");
}
})(); })();

File diff suppressed because it is too large Load diff