Skip to content

Commit

Permalink
Update request part name to flags
Browse files Browse the repository at this point in the history
  • Loading branch information
twobiers committed Jun 11, 2024
1 parent a015fd5 commit f4b6c75
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/module/Rep0st/Rep0st.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ export default class Rep0st implements PoweruserModule {
dta.append("url", imgElement[0].src);

// Filters
let filters = p.user.flagsName.split("+");
filters = filters.indexOf("all") !== -1 ? ["sfw", "nsfw", "nsfl", "pol"] : filters;
let flags = p.user.flagsName.split("+");
flags = flags.indexOf("all") !== -1 ? ["sfw", "nsfw", "nsfl", "nsfp", "pol"] : flags;

for (const filter of filters) {
dta.append("filter", filter);
for (const flag of flags) {
dta.append("flag", flag);
}

GM_xmlhttpRequest({
Expand Down

0 comments on commit f4b6c75

Please sign in to comment.