Merge pull request #51 from saandman/master
Fixed typo #pd_style in line 100 powerdeletesuite.js
This commit is contained in:
commit
2af2363553
2 changed files with 652 additions and 349 deletions
|
|
@ -1,22 +1,32 @@
|
|||
javascript: (function() {
|
||||
window.bookmarkver = '1.4';
|
||||
var isReddit = document.location.hostname.split('.').slice(-2).join('.') === 'reddit.com';
|
||||
var isOverview = document.location.href.match(/\/overview\b/);
|
||||
if (isReddit && isOverview) {
|
||||
var cachBustUrl = 'https://raw.githubusercontent.com/j0be/PowerDeleteSuite/master/powerdeletesuite.js?' + (new Date().getDate());
|
||||
fetch(cachBustUrl).then(function(response) {
|
||||
return response.text();
|
||||
}).then(function(data) {
|
||||
var script = document.createElement('script');
|
||||
script.id = 'pd-script';
|
||||
script.innerHTML = data;
|
||||
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');
|
||||
}
|
||||
javascript: (function () {
|
||||
window.bookmarkver = "1.4";
|
||||
var isReddit =
|
||||
document.location.hostname.split(".").slice(-2).join(".") === "reddit.com";
|
||||
var isOverview = document.location.href.match(/\/overview\b/);
|
||||
if (isReddit && isOverview) {
|
||||
var cachBustUrl = `?${new Date().getDate()}`;
|
||||
var cachBustUrl = 'https://raw.githubusercontent.com/j0be/PowerDeleteSuite/master/powerdeletesuite.js?' + (new Date().getDate());
|
||||
// var cachBustUrl = "https://raw.githubusercontent.com/saandman/PowerDeleteSuite/master/powerdeletesuite.js?" + (new Date().getDate());
|
||||
fetch(cachBustUrl)
|
||||
.then(function (response) {
|
||||
return response.text();
|
||||
})
|
||||
.then(function (data) {
|
||||
var script = document.createElement("script");
|
||||
script.id = "pd-script";
|
||||
script.innerHTML = data;
|
||||
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
Loading…
Add table
Reference in a new issue