Skip to content

Commit

Permalink
Support @.../post/ urls for threads
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Jul 17, 2023
1 parent f98e78f commit d5201c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105650,7 +105650,7 @@ var $$IMU_EXPORT$$;
};

newsrc = website_query({
website_regex: /^https?:\/\/[^/]+\/+t\/+([-_A-Za-z0-9]+)\/*(?:[?#].*)?$/,
website_regex: /^https?:\/\/[^/]+\/+(?:t\/+|@[^/]+\/+post\/+)([-_A-Za-z0-9]+)\/*(?:[?#].*)?$/,
run: function(cb, match) {
threads_query_post_by_shortcode(match[1], function(result) {
let baseobj = {
Expand Down
2 changes: 1 addition & 1 deletion userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -94730,7 +94730,7 @@ var $$IMU_EXPORT$$;
});
};
newsrc = website_query({
website_regex: /^https?:\/\/[^/]+\/+t\/+([-_A-Za-z0-9]+)\/*(?:[?#].*)?$/,
website_regex: /^https?:\/\/[^/]+\/+(?:t\/+|@[^/]+\/+post\/+)([-_A-Za-z0-9]+)\/*(?:[?#].*)?$/,
run: function(cb, match) {
threads_query_post_by_shortcode_1(match[1], function(result) {
var baseobj = {
Expand Down

0 comments on commit d5201c0

Please sign in to comment.