File tree Expand file tree Collapse file tree
packages/remove-redirect/src/sites Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ ' remove-redirect ' : minor
3+ ---
4+
5+ 适配 Instagram 链接转换
Original file line number Diff line number Diff line change 11/******************************************************************************
22 ** Instagram
3+ ** - https://www.instagram.com/jaychou
34 ** - https://www.instagram.com/linkshim/?u=https%3A%2F%2Fgithub.com%2Fmaomao1996%2Ftampermonkey-scripts&e=AT3Mdb540GAp6eHsU0Z_QGrlAc5-VgTKBSWUnq0lwzTDCfOTdT-GR2LIFutHYByEP2A0ql_mLpeU9oe1IuxVdisH-sh2AO2xwj6br5GuXjDODuX8zrwUIjYbkiya3t61XE3p3io
45 ** - https://l.instagram.com/?u=https%3A%2F%2Fgithub.com%2Fmaomao1996%2Ftampermonkey-scripts&e=AT3Mdb540GAp6eHsU0Z_QGrlAc5-VgTKBSWUnq0lwzTDCfOTdT-GR2LIFutHYByEP2A0ql_mLpeU9oe1IuxVdisH-sh2AO2xwj6br5GuXjDODuX8zrwUIjYbkiya3t61XE3p3io
56 ******************************************************************************/
@@ -8,6 +9,14 @@ const sites: SiteModule = [
89 'Instagram' ,
910 / ^ (?: l \. ) ? i n s t a g r a m \. c o m $ / ,
1011 {
12+ transform : {
13+ selector : '[href*="l.instagram.com/?u="]' ,
14+ queryName : 'u' ,
15+ } ,
16+ rewriteWindowOpen : {
17+ validationRule : 'l.instagram.com/?u=' ,
18+ queryName : 'u' ,
19+ } ,
1120 autojump : {
1221 validator : ( { search } ) => search . includes ( 'u=' ) ,
1322 queryName : 'u' ,
You can’t perform that action at this time.
0 commit comments