Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

editText is ignored #53

Open
christianlegge opened this issue Jan 24, 2024 · 4 comments · May be fixed by #57
Open

editText is ignored #53

christianlegge opened this issue Jan 24, 2024 · 4 comments · May be fixed by #57

Comments

@christianlegge
Copy link

The pd__comments-edit-text input field is checked on validate, but its content is never used. A randomEditString is generated instead, even if an editText is given.

@salad612
Copy link

salad612 commented Feb 1, 2024

I'm not really familiar with the project, but at first glance it seems like this PR (#52) might be the cause. Doesn't seem to be any checks in place, to set random string as an option .

@shengslogar
Copy link

Workaround for now is to temporarily update your bookmarklet to point to the last version before this change:

- var cachBustUrl = 'https://raw.githubusercontent.com/j0be/PowerDeleteSuite/master/powerdeletesuite.js?'
+ var cachBustUrl = 'https://raw.githubusercontent.com/j0be/PowerDeleteSuite/6f96fa40d9964b6fbc05a1b68c95a52d2666e63b/powerdeletesuite.js?'
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/6f96fa40d9964b6fbc05a1b68c95a52d2666e63b/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/u/me/overview'; } else { alert('Please go to your Reddit profile before running this script'); } })();

@euuurgh
Copy link

euuurgh commented Feb 21, 2024

I have the exact same issue. Thank you shengslogar for the workaround, but this really should have been addressed already

@Sada-Mio
Copy link

Not sure it has been addressed.

Just processed my account last night. "Edit comments / self posts" checked but was replaced with randomEditString

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants