j0be / PowerDeleteSuite

Power Delete Suite for Reddit
1.68k stars 113 forks source link

"You Broke Reddit" Message When Clicking On Script Bookmark #66

Closed kkirtash93 closed 3 months ago

kkirtash93 commented 3 months ago

Hi, I think Reddit changed something because now https://old.reddit.com/u/me/overview shows "You Broke Reddit" message. image

I am experiencing this in all browsers. Clicking on my profile overview leads to https://old.reddit.com/user/{username}/ url.

braboobssiere commented 3 months ago

edit the https://old.reddit.com/u/me/overview to https://old.reddit.com/user/me/overview fixed it for me

wadie commented 3 months ago

I updated the README with the correct location.

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/i); 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 retrieving 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/user/me/overview'; } else { alert('Please go to your Reddit profile before running this script'); } })();