├── .gitignore ├── LICENSE ├── Pixiv Login Redirect Capture.sln ├── Pixiv Login Redirect Capture ├── App.config ├── ExtractIcon.cs ├── Form_PixivLink.Designer.cs ├── Form_PixivLink.cs ├── Form_PixivLink.resx ├── Form_PixivLink.zh-Hans.resx ├── Form_Register.Designer.cs ├── Form_Register.cs ├── Form_Register.resx ├── Form_Register.zh-Hans.resx ├── Pixiv Login Redirect Capture.csproj ├── Program.cs ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ └── Settings.settings └── app.manifest ├── PixivUserBatchDownload ui.css ├── PixivUserBatchDownload.user.js ├── README.md └── docs └── images ├── preview.png └── structure.jpg /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Build results 17 | [Dd]ebug/ 18 | [Dd]ebugPublic/ 19 | [Rr]elease/ 20 | [Rr]eleases/ 21 | x64/ 22 | x86/ 23 | [Aa][Rr][Mm]/ 24 | [Aa][Rr][Mm]64/ 25 | bld/ 26 | [Bb]in/ 27 | [Oo]bj/ 28 | [Ll]og/ 29 | 30 | # Visual Studio 2015/2017 cache/options directory 31 | .vs/ 32 | # Uncomment if you have tasks that create the project's static files in wwwroot 33 | #wwwroot/ 34 | 35 | # Visual Studio 2017 auto generated files 36 | Generated\ Files/ 37 | 38 | # MSTest test Results 39 | [Tt]est[Rr]esult*/ 40 | [Bb]uild[Ll]og.* 41 | 42 | # NUNIT 43 | *.VisualState.xml 44 | TestResult.xml 45 | 46 | # Build Results of an ATL Project 47 | [Dd]ebugPS/ 48 | [Rr]eleasePS/ 49 | dlldata.c 50 | 51 | # Benchmark Results 52 | BenchmarkDotNet.Artifacts/ 53 | 54 | # .NET Core 55 | project.lock.json 56 | project.fragment.lock.json 57 | artifacts/ 58 | 59 | # StyleCop 60 | StyleCopReport.xml 61 | 62 | # Files built by Visual Studio 63 | *_i.c 64 | *_p.c 65 | *_h.h 66 | *.ilk 67 | *.meta 68 | *.obj 69 | *.iobj 70 | *.pch 71 | *.pdb 72 | *.ipdb 73 | *.pgc 74 | *.pgd 75 | *.rsp 76 | *.sbr 77 | *.tlb 78 | *.tli 79 | *.tlh 80 | *.tmp 81 | *.tmp_proj 82 | *_wpftmp.csproj 83 | *.log 84 | *.vspscc 85 | *.vssscc 86 | .builds 87 | *.pidb 88 | *.svclog 89 | *.scc 90 | 91 | # Chutzpah Test files 92 | _Chutzpah* 93 | 94 | # Visual C++ cache files 95 | ipch/ 96 | *.aps 97 | *.ncb 98 | *.opendb 99 | *.opensdf 100 | *.sdf 101 | *.cachefile 102 | *.VC.db 103 | *.VC.VC.opendb 104 | 105 | # Visual Studio profiler 106 | *.psess 107 | *.vsp 108 | *.vspx 109 | *.sap 110 | 111 | # Visual Studio Trace Files 112 | *.e2e 113 | 114 | # TFS 2012 Local Workspace 115 | $tf/ 116 | 117 | # Guidance Automation Toolkit 118 | *.gpState 119 | 120 | # ReSharper is a .NET coding add-in 121 | _ReSharper*/ 122 | *.[Rr]e[Ss]harper 123 | *.DotSettings.user 124 | 125 | # JustCode is a .NET coding add-in 126 | .JustCode 127 | 128 | # TeamCity is a build add-in 129 | _TeamCity* 130 | 131 | # DotCover is a Code Coverage Tool 132 | *.dotCover 133 | 134 | # AxoCover is a Code Coverage Tool 135 | .axoCover/* 136 | !.axoCover/settings.json 137 | 138 | # Visual Studio code coverage results 139 | *.coverage 140 | *.coveragexml 141 | 142 | # NCrunch 143 | _NCrunch_* 144 | .*crunch*.local.xml 145 | nCrunchTemp_* 146 | 147 | # MightyMoose 148 | *.mm.* 149 | AutoTest.Net/ 150 | 151 | # Web workbench (sass) 152 | .sass-cache/ 153 | 154 | # Installshield output folder 155 | [Ee]xpress/ 156 | 157 | # DocProject is a documentation generator add-in 158 | DocProject/buildhelp/ 159 | DocProject/Help/*.HxT 160 | DocProject/Help/*.HxC 161 | DocProject/Help/*.hhc 162 | DocProject/Help/*.hhk 163 | DocProject/Help/*.hhp 164 | DocProject/Help/Html2 165 | DocProject/Help/html 166 | 167 | # Click-Once directory 168 | publish/ 169 | 170 | # Publish Web Output 171 | *.[Pp]ublish.xml 172 | *.azurePubxml 173 | # Note: Comment the next line if you want to checkin your web deploy settings, 174 | # but database connection strings (with potential passwords) will be unencrypted 175 | *.pubxml 176 | *.publishproj 177 | 178 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 179 | # checkin your Azure Web App publish settings, but sensitive information contained 180 | # in these scripts will be unencrypted 181 | PublishScripts/ 182 | 183 | # NuGet Packages 184 | *.nupkg 185 | # The packages folder can be ignored because of Package Restore 186 | **/[Pp]ackages/* 187 | # except build/, which is used as an MSBuild target. 188 | !**/[Pp]ackages/build/ 189 | # Uncomment if necessary however generally it will be regenerated when needed 190 | #!**/[Pp]ackages/repositories.config 191 | # NuGet v3's project.json files produces more ignorable files 192 | *.nuget.props 193 | *.nuget.targets 194 | 195 | # Microsoft Azure Build Output 196 | csx/ 197 | *.build.csdef 198 | 199 | # Microsoft Azure Emulator 200 | ecf/ 201 | rcf/ 202 | 203 | # Windows Store app package directories and files 204 | AppPackages/ 205 | BundleArtifacts/ 206 | Package.StoreAssociation.xml 207 | _pkginfo.txt 208 | *.appx 209 | 210 | # Visual Studio cache files 211 | # files ending in .cache can be ignored 212 | *.[Cc]ache 213 | # but keep track of directories ending in .cache 214 | !?*.[Cc]ache/ 215 | 216 | # Others 217 | ClientBin/ 218 | ~$* 219 | *~ 220 | *.dbmdl 221 | *.dbproj.schemaview 222 | *.jfm 223 | *.pfx 224 | *.publishsettings 225 | orleans.codegen.cs 226 | 227 | # Including strong name files can present a security risk 228 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 229 | #*.snk 230 | 231 | # Since there are multiple workflows, uncomment next line to ignore bower_components 232 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 233 | #bower_components/ 234 | 235 | # RIA/Silverlight projects 236 | Generated_Code/ 237 | 238 | # Backup & report files from converting an old project file 239 | # to a newer Visual Studio version. Backup files are not needed, 240 | # because we have git ;-) 241 | _UpgradeReport_Files/ 242 | Backup*/ 243 | UpgradeLog*.XML 244 | UpgradeLog*.htm 245 | ServiceFabricBackup/ 246 | *.rptproj.bak 247 | 248 | # SQL Server files 249 | *.mdf 250 | *.ldf 251 | *.ndf 252 | 253 | # Business Intelligence projects 254 | *.rdl.data 255 | *.bim.layout 256 | *.bim_*.settings 257 | *.rptproj.rsuser 258 | *- Backup*.rdl 259 | 260 | # Microsoft Fakes 261 | FakesAssemblies/ 262 | 263 | # GhostDoc plugin setting file 264 | *.GhostDoc.xml 265 | 266 | # Node.js Tools for Visual Studio 267 | .ntvs_analysis.dat 268 | node_modules/ 269 | 270 | # Visual Studio 6 build log 271 | *.plg 272 | 273 | # Visual Studio 6 workspace options file 274 | *.opt 275 | 276 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 277 | *.vbw 278 | 279 | # Visual Studio LightSwitch build output 280 | **/*.HTMLClient/GeneratedArtifacts 281 | **/*.DesktopClient/GeneratedArtifacts 282 | **/*.DesktopClient/ModelManifest.xml 283 | **/*.Server/GeneratedArtifacts 284 | **/*.Server/ModelManifest.xml 285 | _Pvt_Extensions 286 | 287 | # Paket dependency manager 288 | .paket/paket.exe 289 | paket-files/ 290 | 291 | # FAKE - F# Make 292 | .fake/ 293 | 294 | # JetBrains Rider 295 | .idea/ 296 | *.sln.iml 297 | 298 | # CodeRush personal settings 299 | .cr/personal 300 | 301 | # Python Tools for Visual Studio (PTVS) 302 | __pycache__/ 303 | *.pyc 304 | 305 | # Cake - Uncomment if you are using it 306 | # tools/** 307 | # !tools/packages.config 308 | 309 | # Tabs Studio 310 | *.tss 311 | 312 | # Telerik's JustMock configuration file 313 | *.jmconfig 314 | 315 | # BizTalk build output 316 | *.btp.cs 317 | *.btm.cs 318 | *.odx.cs 319 | *.xsd.cs 320 | 321 | # OpenCover UI analysis results 322 | OpenCover/ 323 | 324 | # Azure Stream Analytics local run output 325 | ASALocalRun/ 326 | 327 | # MSBuild Binary and Structured Log 328 | *.binlog 329 | 330 | # NVidia Nsight GPU debugger configuration file 331 | *.nvuser 332 | 333 | # MFractors (Xamarin productivity tool) working folder 334 | .mfractor/ 335 | 336 | # Local History for Visual Studio 337 | .localhistory/ 338 | 339 | # BeatPulse healthcheck temp database 340 | healthchecksdb -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | {one line to give the program's name and a brief idea of what it does.} 635 | Copyright (C) {year} {name of author} 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | {project} Copyright (C) {year} {fullname} 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /Pixiv Login Redirect Capture.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.7.34031.279 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Pixiv Login Redirect Capture", "Pixiv Login Redirect Capture\Pixiv Login Redirect Capture.csproj", "{92BA135B-7F6C-4725-9258-D925E01C3F77}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {92BA135B-7F6C-4725-9258-D925E01C3F77}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {92BA135B-7F6C-4725-9258-D925E01C3F77}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {92BA135B-7F6C-4725-9258-D925E01C3F77}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {92BA135B-7F6C-4725-9258-D925E01C3F77}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {ECB0C53C-0C4E-4650-8A1A-4ADF7425107E} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /Pixiv Login Redirect Capture/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Pixiv Login Redirect Capture/ExtractIcon.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Runtime.InteropServices; 6 | using System.IO; 7 | using System.Drawing; 8 | 9 | namespace Pixiv_Login_Redirect_Capture 10 | { 11 | class ExtractIcon 12 | { 13 | /// 14 | /// 返回系统设置的图标 15 | /// 16 | /// 文件名,指定从exe文件或dll文件引入icon 17 | /// 文件的图表中的第几个,指定icon的索引如果为0则从指定的文件中引入第1个icon 18 | /// 返回的大图标的指针,大图标句柄如果为null则为没有大图标 19 | /// 返回的小图标的指针,小图标句柄如果为null则为没有小图标 20 | /// ico个数,找几个图标 21 | /// 22 | [DllImport("shell32.dll")] 23 | public static extern uint ExtractIconEx(string lpszFile, int nIconIndex, int[] phiconLarge, int[] phiconSmall, uint nIcons); 24 | 25 | /// 26 | /// 清除图标 27 | /// 28 | /// 图标句柄 29 | /// 返回非零表示成功,零表示失败 30 | [DllImport("User32.dll", EntryPoint = "DestroyIcon")] 31 | public static extern int DestroyIcon(IntPtr hIcon); 32 | 33 | public static Icon GetIcon(string lpszFile, int nIconIndex, bool isLarge) 34 | { 35 | Icon resultIcon = null; 36 | if (File.Exists(lpszFile)) 37 | { 38 | //调用API方法读取图标 39 | int[] phiconLarge = new int[1]; 40 | int[] phiconSmall = new int[1]; 41 | uint count = ExtractIconEx(lpszFile, nIconIndex, phiconLarge, phiconSmall, 1); //241就是剪贴板图标 42 | IntPtr IconHnd = new IntPtr(isLarge ? phiconLarge[0] : phiconSmall[0]); 43 | resultIcon = Icon.FromHandle(IconHnd).Clone() as Icon; 44 | DestroyIcon(IconHnd); 45 | } 46 | return resultIcon; 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /Pixiv Login Redirect Capture/Form_PixivLink.Designer.cs: -------------------------------------------------------------------------------- 1 |  2 | namespace Pixiv_Login_Redirect_Capture 3 | { 4 | partial class Form_PixivLink 5 | { 6 | /// 7 | /// Required designer variable. 8 | /// 9 | private System.ComponentModel.IContainer components = null; 10 | 11 | /// 12 | /// Clean up any resources being used. 13 | /// 14 | /// true if managed resources should be disposed; otherwise, false. 15 | protected override void Dispose(bool disposing) 16 | { 17 | if (disposing && (components != null)) 18 | { 19 | components.Dispose(); 20 | } 21 | base.Dispose(disposing); 22 | } 23 | 24 | #region Windows Form Designer generated code 25 | 26 | /// 27 | /// Required method for Designer support - do not modify 28 | /// the contents of this method with the code editor. 29 | /// 30 | private void InitializeComponent() 31 | { 32 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form_PixivLink)); 33 | this.label_pixivlink = new System.Windows.Forms.Label(); 34 | this.textBox_pixivlink = new System.Windows.Forms.TextBox(); 35 | this.btn_CopyToClipboard = new System.Windows.Forms.Button(); 36 | this.SuspendLayout(); 37 | // 38 | // label_pixivlink 39 | // 40 | resources.ApplyResources(this.label_pixivlink, "label_pixivlink"); 41 | this.label_pixivlink.Name = "label_pixivlink"; 42 | // 43 | // textBox_pixivlink 44 | // 45 | resources.ApplyResources(this.textBox_pixivlink, "textBox_pixivlink"); 46 | this.textBox_pixivlink.Name = "textBox_pixivlink"; 47 | // 48 | // btn_CopyToClipboard 49 | // 50 | resources.ApplyResources(this.btn_CopyToClipboard, "btn_CopyToClipboard"); 51 | this.btn_CopyToClipboard.Name = "btn_CopyToClipboard"; 52 | this.btn_CopyToClipboard.UseVisualStyleBackColor = true; 53 | this.btn_CopyToClipboard.Click += new System.EventHandler(this.btn_CopyToClipboard_Click); 54 | // 55 | // Form_PixivLink 56 | // 57 | resources.ApplyResources(this, "$this"); 58 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 59 | this.Controls.Add(this.btn_CopyToClipboard); 60 | this.Controls.Add(this.label_pixivlink); 61 | this.Controls.Add(this.textBox_pixivlink); 62 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow; 63 | this.MaximizeBox = false; 64 | this.MinimizeBox = false; 65 | this.Name = "Form_PixivLink"; 66 | this.ResumeLayout(false); 67 | this.PerformLayout(); 68 | 69 | } 70 | 71 | #endregion 72 | 73 | private System.Windows.Forms.Label label_pixivlink; 74 | private System.Windows.Forms.TextBox textBox_pixivlink; 75 | private System.Windows.Forms.Button btn_CopyToClipboard; 76 | } 77 | } -------------------------------------------------------------------------------- /Pixiv Login Redirect Capture/Form_PixivLink.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | 11 | namespace Pixiv_Login_Redirect_Capture 12 | { 13 | public partial class Form_PixivLink : Form 14 | { 15 | 16 | public Form_PixivLink(string[] args) 17 | { 18 | InitializeComponent(); 19 | if (args.Length > 0) 20 | { 21 | textBox_pixivlink.Text = args[0]; 22 | } 23 | string imageresPath = Environment.SystemDirectory + @"\imageres.dll"; 24 | Icon icon = ExtractIcon.GetIcon(imageresPath, 241, false); 25 | if (icon != null) 26 | btn_CopyToClipboard.Image = icon.ToBitmap(); 27 | } 28 | 29 | private void btn_CopyToClipboard_Click(object sender, EventArgs e) 30 | { 31 | Clipboard.SetText(textBox_pixivlink.Text); 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Pixiv Login Redirect Capture/Form_PixivLink.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 122 | True 123 | 124 | 125 | 126 | NoControl 127 | 128 | 129 | 130 | 10, 13 131 | 132 | 133 | 89, 12 134 | 135 | 136 | 4 137 | 138 | 139 | Pixiv APP Link 140 | 141 | 142 | label_pixivlink 143 | 144 | 145 | System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 146 | 147 | 148 | $this 149 | 150 | 151 | 1 152 | 153 | 154 | Top, Left, Right 155 | 156 | 157 | 12, 28 158 | 159 | 160 | 397, 21 161 | 162 | 163 | 3 164 | 165 | 166 | textBox_pixivlink 167 | 168 | 169 | System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 170 | 171 | 172 | $this 173 | 174 | 175 | 2 176 | 177 | 178 | Top, Right 179 | 180 | 181 | NoControl 182 | 183 | 184 | 415, 26 185 | 186 | 187 | 133, 23 188 | 189 | 190 | 5 191 | 192 | 193 | Copy to Clipboard 194 | 195 | 196 | ImageBeforeText 197 | 198 | 199 | btn_CopyToClipboard 200 | 201 | 202 | System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 203 | 204 | 205 | $this 206 | 207 | 208 | 0 209 | 210 | 211 | True 212 | 213 | 214 | 6, 12 215 | 216 | 217 | 560, 61 218 | 219 | 220 | 65535, 100 221 | 222 | 223 | 200, 100 224 | 225 | 226 | PUBD - Pixiv APP Link 227 | 228 | 229 | Form_PixivLink 230 | 231 | 232 | System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 233 | 234 | -------------------------------------------------------------------------------- /Pixiv Login Redirect Capture/Form_PixivLink.zh-Hans.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | Pixiv 应用链接 122 | 123 | 124 | 复制到剪贴板 125 | 126 | 127 | PUBD - Pixiv 应用链接 128 | 129 | -------------------------------------------------------------------------------- /Pixiv Login Redirect Capture/Form_Register.Designer.cs: -------------------------------------------------------------------------------- 1 |  2 | namespace Pixiv_Login_Redirect_Capture 3 | { 4 | partial class Form_Register 5 | { 6 | /// 7 | /// 必需的设计器变量。 8 | /// 9 | private System.ComponentModel.IContainer components = null; 10 | 11 | /// 12 | /// 清理所有正在使用的资源。 13 | /// 14 | /// 如果应释放托管资源,为 true;否则为 false。 15 | protected override void Dispose(bool disposing) 16 | { 17 | if (disposing && (components != null)) 18 | { 19 | components.Dispose(); 20 | } 21 | base.Dispose(disposing); 22 | } 23 | 24 | #region Windows 窗体设计器生成的代码 25 | 26 | /// 27 | /// 设计器支持所需的方法 - 不要修改 28 | /// 使用代码编辑器修改此方法的内容。 29 | /// 30 | private void InitializeComponent() 31 | { 32 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form_Register)); 33 | this.group_protocol = new System.Windows.Forms.GroupBox(); 34 | this.button_unregister = new System.Windows.Forms.Button(); 35 | this.button_register = new System.Windows.Forms.Button(); 36 | this.group_protocol.SuspendLayout(); 37 | this.SuspendLayout(); 38 | // 39 | // group_protocol 40 | // 41 | resources.ApplyResources(this.group_protocol, "group_protocol"); 42 | this.group_protocol.Controls.Add(this.button_unregister); 43 | this.group_protocol.Controls.Add(this.button_register); 44 | this.group_protocol.Name = "group_protocol"; 45 | this.group_protocol.TabStop = false; 46 | // 47 | // button_unregister 48 | // 49 | resources.ApplyResources(this.button_unregister, "button_unregister"); 50 | this.button_unregister.Name = "button_unregister"; 51 | this.button_unregister.UseVisualStyleBackColor = true; 52 | this.button_unregister.Click += new System.EventHandler(this.button_unregister_Click); 53 | // 54 | // button_register 55 | // 56 | resources.ApplyResources(this.button_register, "button_register"); 57 | this.button_register.Name = "button_register"; 58 | this.button_register.UseVisualStyleBackColor = true; 59 | this.button_register.Click += new System.EventHandler(this.button_register_Click); 60 | // 61 | // Form_Register 62 | // 63 | resources.ApplyResources(this, "$this"); 64 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 65 | this.Controls.Add(this.group_protocol); 66 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; 67 | this.MaximizeBox = false; 68 | this.MinimizeBox = false; 69 | this.Name = "Form_Register"; 70 | this.Load += new System.EventHandler(this.Register_Load); 71 | this.group_protocol.ResumeLayout(false); 72 | this.ResumeLayout(false); 73 | 74 | } 75 | 76 | #endregion 77 | 78 | private System.Windows.Forms.GroupBox group_protocol; 79 | private System.Windows.Forms.Button button_unregister; 80 | private System.Windows.Forms.Button button_register; 81 | } 82 | } 83 | 84 | -------------------------------------------------------------------------------- /Pixiv Login Redirect Capture/Form_Register.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | using System.Diagnostics; 11 | using Microsoft.Win32; 12 | using System.Security.Principal; 13 | using System.Runtime.InteropServices; 14 | using System.Resources; 15 | 16 | namespace Pixiv_Login_Redirect_Capture 17 | { 18 | public partial class Form_Register : Form 19 | { 20 | private const string protocolName = "pixiv"; 21 | private const string regArg = "--register"; 22 | private const string unregArg = "--unregister"; 23 | 24 | [DllImport("user32.dll", EntryPoint = "SendMessage")] 25 | public static extern int SendMessage(IntPtr hwnd, int wMsg, IntPtr wParam, IntPtr lParam); 26 | 27 | internal const int BCM_FIRST = 0x1600; //Normal button 28 | internal const int BCM_SETSHIELD = (BCM_FIRST + 0x000C); //Elevated button 29 | 30 | public Form_Register(string[] args) 31 | { 32 | InitializeComponent(); 33 | if (args.Contains(regArg)) //注册 34 | button_register_Click(this, null); 35 | if (args.Contains(unregArg)) //注销 36 | button_unregister_Click(this, null); 37 | if (!IsAdministrator() && IsRegistered(ClassesKeyMode.Global)) 38 | { 39 | //AddShieldToButton(button_register); //新版本可以添加到当前用户,就不需要再提权了 40 | AddShieldToButton(button_unregister); //I非管理员,且注册了全局的情况下,显示提权注销 41 | } 42 | } 43 | 44 | /// 45 | /// 注册协议 46 | /// 47 | /// 48 | /// 49 | private void button_register_Click(object sender, EventArgs e) 50 | { 51 | Reg(); 52 | RefreshButtonEnable(); 53 | } 54 | 55 | /// 56 | /// 注销协议 57 | /// 58 | /// 59 | /// 60 | private void button_unregister_Click(object sender, EventArgs e) 61 | { 62 | UnReg(); 63 | RefreshButtonEnable(); 64 | } 65 | 66 | /// 67 | /// 检测是否是管理员权限 68 | /// 69 | /// 70 | public static bool IsAdministrator() 71 | { 72 | WindowsIdentity current = WindowsIdentity.GetCurrent(); 73 | WindowsPrincipal windowsPrincipal = new WindowsPrincipal(current); 74 | return windowsPrincipal.IsInRole(WindowsBuiltInRole.Administrator); 75 | } 76 | 77 | /// 78 | /// 注册位置模式描述 79 | /// 80 | public enum ClassesKeyMode 81 | { 82 | Auto = 0, 83 | Global = 1, 84 | CurrentUser = 2 85 | } 86 | 87 | /// 88 | /// 根据是否有管理员权限,决定目前获取的Classes母键位置是全局还是当前用户 89 | /// 90 | /// 搜索注册位置的模式 91 | /// 注册位置 92 | public static RegistryKey GetClassesKey(ClassesKeyMode mode = ClassesKeyMode.Auto) 93 | { 94 | ClassesKeyMode realTarget = mode; 95 | if (mode == ClassesKeyMode.Auto) 96 | { 97 | realTarget = IsAdministrator() ? ClassesKeyMode.Global : ClassesKeyMode.CurrentUser; 98 | } 99 | switch (realTarget) 100 | { 101 | case ClassesKeyMode.CurrentUser: 102 | return Registry.CurrentUser.OpenSubKey("SOFTWARE").OpenSubKey("Classes", true); 103 | case ClassesKeyMode.Global: 104 | default: 105 | return Registry.ClassesRoot; 106 | } 107 | } 108 | 109 | /// 110 | /// 检测是否已经注册 111 | /// 112 | /// 搜索注册位置的模式 113 | /// 是否已注册 114 | public static bool IsRegistered(ClassesKeyMode mode = ClassesKeyMode.Auto) 115 | { 116 | RegistryKey classesKey = GetClassesKey(mode); 117 | RegistryKey surekamKey = classesKey.OpenSubKey(protocolName); 118 | bool registered = surekamKey != null; 119 | if (registered) 120 | surekamKey.Close(); 121 | classesKey.Close(); 122 | return registered; 123 | } 124 | 125 | /// 126 | /// 注册启动项到注册表 127 | /// 128 | public static void Reg() 129 | { 130 | //注册协议名 131 | RegistryKey classesKey = GetClassesKey(); 132 | RegistryKey surekamKey = classesKey.CreateSubKey(protocolName, true); 133 | //设置其为URL协议 134 | surekamKey.SetValue("URL Protocol", string.Empty); 135 | //创建打开命令 136 | RegistryKey shellKey = surekamKey.CreateSubKey("shell"); 137 | RegistryKey openKey = shellKey.CreateSubKey("open"); 138 | RegistryKey commandKey = openKey.CreateSubKey("command"); 139 | //获取当前程序路径 140 | string exePath = Process.GetCurrentProcess().MainModule.FileName; 141 | commandKey.SetValue(string.Empty, $"\"{exePath}\" \"%1\""); 142 | surekamKey.Close(); 143 | } 144 | 145 | /// 146 | /// 取消注册,删除整个pixiv节点 147 | /// 148 | public static void UnReg() 149 | { 150 | //判断当前用户 151 | if (IsRegistered(ClassesKeyMode.CurrentUser)) 152 | { 153 | RegistryKey classesKey = GetClassesKey(ClassesKeyMode.CurrentUser); 154 | classesKey.DeleteSubKeyTree(protocolName); 155 | classesKey.Close(); 156 | } 157 | //判断全局 158 | if (IsRegistered(ClassesKeyMode.Global)) 159 | { 160 | //没有管理员权限则提权 161 | if (!IsAdministrator()) 162 | { 163 | RestartElevated(unregArg); 164 | return; 165 | } 166 | else 167 | { 168 | RegistryKey classesKey = GetClassesKey(ClassesKeyMode.Global); 169 | classesKey.DeleteSubKeyTree(protocolName); 170 | classesKey.Close(); 171 | } 172 | } 173 | } 174 | 175 | /// 176 | /// 窗口启动时添加盾牌图标 177 | /// 178 | /// 179 | /// 180 | private void Register_Load(object sender, EventArgs e) 181 | { 182 | RefreshButtonEnable(); 183 | ResourceManager resManager = new ResourceManager(typeof(Form_Register)); 184 | this.Text += $" ({(IsAdministrator() ? resManager.GetString("Identity_Administrator") : resManager.GetString("Identity_CurrentUser"))})"; 185 | } 186 | 187 | /// 188 | /// 刷新按钮的注册状态 189 | /// 190 | private void RefreshButtonEnable() 191 | { 192 | bool global = IsRegistered(ClassesKeyMode.Global); 193 | bool user = IsRegistered(ClassesKeyMode.CurrentUser); 194 | button_register.Enabled = !global && !user; 195 | button_unregister.Enabled = global || user; 196 | } 197 | 198 | /// 199 | /// 增加盾牌图标 200 | /// 201 | /// 需要增加盾牌图标的按钮 202 | static internal void AddShieldToButton(Button btn) 203 | { 204 | btn.FlatStyle = FlatStyle.System; 205 | SendMessage(btn.Handle, BCM_SETSHIELD, IntPtr.Zero, new IntPtr(0xFFFFFFFF)); 206 | } 207 | 208 | /// 209 | /// 提权重新运行自身 210 | /// 211 | /// 传递的运行参数 212 | internal static void RestartElevated(string exearg = "") 213 | { 214 | ProcessStartInfo startInfo = new ProcessStartInfo 215 | { 216 | UseShellExecute = true, 217 | WorkingDirectory = Environment.CurrentDirectory, 218 | FileName = Application.ExecutablePath, 219 | Verb = "runas", 220 | Arguments = exearg 221 | }; 222 | try 223 | { 224 | Process p = Process.Start(startInfo); 225 | } 226 | catch (Win32Exception ex) 227 | { 228 | Debug.Write(ex); 229 | return; 230 | } 231 | 232 | Application.Exit(); 233 | } 234 | } 235 | } 236 | -------------------------------------------------------------------------------- /Pixiv Login Redirect Capture/Form_Register.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | group_protocol 122 | 123 | 124 | 125 | 6, 12 126 | 127 | 128 | button_register 129 | 130 | 131 | 0 132 | 133 | 134 | 1 135 | 136 | 137 | Unregister 138 | 139 | 140 | System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 141 | 142 | 143 | 373, 81 144 | 145 | 146 | Form_Register 147 | 148 | 149 | System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 150 | 151 | 152 | 163, 23 153 | 154 | 155 | 0 156 | 157 | 158 | 159 | 0 160 | 161 | 162 | 1 163 | 164 | 165 | System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 166 | 167 | 168 | 163, 23 169 | 170 | 171 | $this 172 | 173 | 174 | Register 175 | 176 | 177 | 0 178 | 179 | 180 | group_protocol 181 | 182 | 183 | 12, 12 184 | 185 | 186 | System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 187 | 188 | 189 | Pixiv Protocol 190 | 191 | 192 | 6, 24 193 | 194 | 195 | 348, 58 196 | 197 | 198 | group_protocol 199 | 200 | 201 | button_unregister 202 | 203 | 204 | PUBD - Register Protocol 205 | 206 | 207 | 175, 24 208 | 209 | 210 | True 211 | 212 | 213 | Administrator 214 | 215 | 216 | Current User 217 | 218 | -------------------------------------------------------------------------------- /Pixiv Login Redirect Capture/Form_Register.zh-Hans.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 注销 122 | 123 | 124 | 注册 125 | 126 | 127 | Pixiv 协议 128 | 129 | 130 | PUBD - 注册协议 131 | 132 | 133 | 管理员 134 | 135 | 136 | 当前用户 137 | 138 | -------------------------------------------------------------------------------- /Pixiv Login Redirect Capture/Pixiv Login Redirect Capture.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {92BA135B-7F6C-4725-9258-D925E01C3F77} 8 | WinExe 9 | Pixiv_Login_Redirect_Capture 10 | Pixiv Login Redirect Capture 11 | v4.8 12 | 512 13 | true 14 | true 15 | 16 | 17 | false 18 | publish\ 19 | true 20 | Disk 21 | false 22 | Foreground 23 | 7 24 | Days 25 | false 26 | false 27 | true 28 | true 29 | 1 30 | 1.0.0.%2a 31 | false 32 | true 33 | true 34 | 35 | 36 | AnyCPU 37 | true 38 | full 39 | false 40 | bin\Debug\ 41 | DEBUG;TRACE 42 | prompt 43 | 4 44 | false 45 | 46 | 47 | AnyCPU 48 | pdbonly 49 | true 50 | bin\Release\ 51 | TRACE 52 | prompt 53 | 4 54 | false 55 | 56 | 57 | 58 | ED7832813F17AABDD910F53DA51F8BA5AA41F853 59 | 60 | 61 | Pixiv Login Redirect Capture_TemporaryKey.pfx 62 | 63 | 64 | true 65 | 66 | 67 | false 68 | 69 | 70 | true 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | Form 88 | 89 | 90 | Form_PixivLink.cs 91 | 92 | 93 | Form 94 | 95 | 96 | Form_Register.cs 97 | 98 | 99 | 100 | 101 | 102 | Form_PixivLink.cs 103 | 104 | 105 | Form_PixivLink.cs 106 | 107 | 108 | Form_Register.cs 109 | 110 | 111 | Form_Register.cs 112 | 113 | 114 | ResXFileCodeGenerator 115 | Designer 116 | Resources.Designer.cs 117 | 118 | 119 | 120 | 121 | SettingsSingleFileGenerator 122 | Settings.Designer.cs 123 | 124 | 125 | True 126 | True 127 | Resources.resx 128 | 129 | 130 | True 131 | Settings.settings 132 | True 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | False 141 | Microsoft .NET Framework 4.8 %28x86 和 x64%29 142 | true 143 | 144 | 145 | False 146 | .NET Framework 3.5 SP1 147 | false 148 | 149 | 150 | 151 | -------------------------------------------------------------------------------- /Pixiv Login Redirect Capture/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.Windows.Forms; 6 | using System.Text.RegularExpressions; 7 | 8 | namespace Pixiv_Login_Redirect_Capture 9 | { 10 | static class Program 11 | { 12 | /// 13 | /// 应用程序的主入口点。 14 | /// 15 | [STAThread] 16 | static void Main(string[] args) 17 | { 18 | Application.EnableVisualStyles(); 19 | Application.SetCompatibleTextRenderingDefault(false); 20 | if (args.Length > 0) 21 | { 22 | if (Regex.IsMatch(args[0], @"^pixiv:[\\/]{2}.+", RegexOptions.IgnoreCase)) 23 | { 24 | Application.Run(new Form_PixivLink(args)); 25 | } 26 | else 27 | { 28 | Application.Run(new Form_Register(args)); 29 | } 30 | } 31 | else 32 | { 33 | Application.Run(new Form_Register(args)); 34 | } 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Pixiv Login Redirect Capture/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的一般信息由以下 6 | // 控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("Pixiv Login Redirect Capture")] 9 | [assembly: AssemblyDescription("Get the Pivix private protocol link")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Maple Palading")] 12 | [assembly: AssemblyProduct("Pixiv Login Redirect Capture")] 13 | [assembly: AssemblyCopyright("Copyright © Mapaler 2023")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // 将 ComVisible 设置为 false 会使此程序集中的类型 18 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 19 | //请将此类型的 ComVisible 特性设置为 true。 20 | [assembly: ComVisible(false)] 21 | 22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID 23 | [assembly: Guid("92ba135b-7f6c-4725-9258-d925e01c3f77")] 24 | 25 | // 程序集的版本信息由下列四个值组成: 26 | // 27 | // 主版本 28 | // 次版本 29 | // 生成号 30 | // 修订号 31 | // 32 | //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 33 | //通过使用 "*",如下所示: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("2.0.0.0")] 36 | [assembly: AssemblyFileVersion("2.0.0.0")] 37 | -------------------------------------------------------------------------------- /Pixiv Login Redirect Capture/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码由工具生成。 4 | // 运行时版本:4.0.30319.42000 5 | // 6 | // 对此文件的更改可能会导致不正确的行为,并且如果 7 | // 重新生成代码,这些更改将会丢失。 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Pixiv_Login_Redirect_Capture.Properties { 12 | using System; 13 | 14 | 15 | /// 16 | /// 一个强类型的资源类,用于查找本地化的字符串等。 17 | /// 18 | // 此类是由 StronglyTypedResourceBuilder 19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 20 | // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen 21 | // (以 /str 作为命令选项),或重新生成 VS 项目。 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() { 33 | } 34 | 35 | /// 36 | /// 返回此类使用的缓存的 ResourceManager 实例。 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | internal static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Pixiv_Login_Redirect_Capture.Properties.Resources", typeof(Resources).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// 重写当前线程的 CurrentUICulture 属性,对 51 | /// 使用此强类型资源类的所有资源查找执行重写。 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | internal static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /Pixiv Login Redirect Capture/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | -------------------------------------------------------------------------------- /Pixiv Login Redirect Capture/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码由工具生成。 4 | // 运行时版本:4.0.30319.42000 5 | // 6 | // 对此文件的更改可能会导致不正确的行为,并且如果 7 | // 重新生成代码,这些更改将会丢失。 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Pixiv_Login_Redirect_Capture.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.7.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Pixiv Login Redirect Capture/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Pixiv Login Redirect Capture/app.manifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 54 | 62 | 63 | 64 | 78 | 79 | 80 | -------------------------------------------------------------------------------- /PixivUserBatchDownload ui.css: -------------------------------------------------------------------------------- 1 | /* ==UserStyle== 2 | @name PixivUserBatchDownload UI 3 | @namespace http://www.mapaler.com/ 4 | @author mapaler 5 | @description `P站画师个人作品批量下载工具v5.x的UI,配合PUBDv5使用The UI for PixivUserBatchDownload, must be used with the PUBDhttps://github.com/Mapaler/PixivUserBatchDownload` 6 | @version v5.20.146 7 | @license GPLv3 8 | ==/UserStyle== */ 9 | @namespace url(http://www.w3.org/1999/xhtml); 10 | 11 | @-moz-document domain("www.pixiv.net") { 12 | .display-none 13 | {/*任何需要隐藏的*/ 14 | display:none !important; 15 | } 16 | .pubd-btnStartInsertPlace 17 | { 18 | position: relative; 19 | margin: 0 0 0 auto; 20 | display: inline-block; 21 | } 22 | /*推荐作品列表里已经收藏了的作者*/ 23 | .pubd-stared 24 | { 25 | background-color: grey; 26 | opacity: 1; 27 | position:relative; 28 | } 29 | .pubd-stared::after 30 | { 31 | content:"该作者已收藏"; 32 | background-color: pink; 33 | position:absolute; 34 | bottom:0; 35 | right:0; 36 | } 37 | .pubd-icon 38 | {/*所有图标,来自._icon*/ 39 | display: inline-block; 40 | overflow: hidden; 41 | text-indent: -999px; 42 | white-space: nowrap; 43 | height: 20px; 44 | width: 20px; 45 | background-size: 20px; 46 | background-repeat: no-repeat; 47 | background-position: center; 48 | vertical-align: middle; 49 | } 50 | .pubd-start 51 | {/*开始按钮*/ 52 | color: #1A4483; 53 | background-image: linear-gradient(to bottom, #FCFDFE 0%, #87DCFF 100%); 54 | background-color: #CCEEFF; 55 | text-shadow: #fcfcf8 0 1px 2px; 56 | border: 1px solid #cfe0e9; 57 | border-radius: 5px; 58 | padding: 0; 59 | margin: 0; 60 | display: inline-block; 61 | width: 152px; 62 | height: 25px; 63 | font-size: 14px; 64 | line-height: 25px; 65 | position: relative; 66 | cursor: pointer; 67 | word-wrap: break-word; 68 | text-decoration: none !important; 69 | vertical-align:top; 70 | } 71 | .pubd-start>.pubd-icon 72 | {/*开始按钮图标*/ 73 | background-size: 23px; 74 | width: 25px; 75 | color:black; 76 | } 77 | .pubd-start>.star 78 | {/*开始按钮前面的快速收藏图标*/ 79 | background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAQAAABIkb+zAAAFX0lEQVR4AexbA5QjQRBdnG3bCHZ+nW3btm3btm3btm3btpGc76avO5hNZjbz3lY9LKvrd/+uKUy81JNACZRACZRACRRzOnM6XQPAbMzSsfupI9Fn+pw6km4BSF3ISlZ01qv/PvTgBwB64OWjS/+pLFl/qVRGlwCw6w8A7NQj/1OR9Z9KqfRHoMlyAJikM/eThMMHBsCHJOH0xf+2ZCVWW+srgN7iANzy8tbPBS5GVl5RRD8E2iwCQBv1En8Sk1WksFBifez/GLLa0FF62P9Q9Fbm8it6JfvuLYXy/AvclKHNaBrFfN/Y0/33piss642JYJFBuOLp/M/Pxx1sYLKiPJ4NYDUf+akwA2qFB7tviAuL4NnrTVdloL4a4nosABrKkKXV33NpwZzLQM8NoC/lITNJuH+5KRNaXyYJ7pn8r8fs8wQG3DjmbGp5JoCztmswYyIG3FkPoo1fAkqPolJtlv+0zX6Ch0FUB0UpvSmhVnTyMUUzGZBLqkDN0ZcmYyUdoGt4Q1axoqQ4xRYp3tA1OoCVNBl9qblUAblMBlM0f1cPptCmhD/2lOqgE0bQPGyl03jIhEfHekvQCfKm20ps4Cse0mlspXkYgU4KzgtNOGcVq9ReSLfWrtqFBU2cuYxF6L1Ly3xgu6FsMHVB3ztd04HosQsAptq0O9EF9x+DlESXeHRRkfnPdB8nsZnmYrg5me1aDcMwhzbhBN2jL4rsX6V4SgNkeDog3N9ndAG7sITGoQc1kspI2ZAyRWQvf4gxoik5skqlqSG6Yywtxk6coydC9w8YI/qnux8MSzlTb5Ff1edKTrzmtmxp6mD+Lk+kfoLwVle1aq6agFgDVDCKYSo0qbzRl98sqZpbjpUPf1idIITrljWjK0z0gINwhKK4y31jREHAeACTO8elsXGWW+KmOZlb3E9EV7ntOWuO7e6JYxjaxkF4QVlcJmh6POPs7k4dxksF8cV8bqlPUgWXyFkKH7ndn09B1YvTXcnKaVc3ThGs6KF2560CfeKWnenlq/w8aabwPNUXykIvuKW3KWMtheJvFF4zN0pNMSfDXW75/YoAbOf+/66mk0xDdJx0ZXxBK4h1/6QhuublPNvzpG4uXN9tFCrAG7nIpSgUZGQAlAiYlkpvedqlMDcKQp9lAIYEDIDt8sxI8X/vZgOA9hJEXvpjhGIA/eUFKXN+2gilZ1hcVvENKsI0YrJrDoDt8tiqiqU0Uhrxb5KHZUJAJ+0BLJc5cE3cB8JoWPAVY5KEc9QMxjrNAcj7B5gtypnw6O9f3KdKAgCT5ONYjd03JWcY3IDr/+zkUoWd/8/pqTrzF0ZNAUi15YubDDLiBEcPfBR2lD5S7yTB5TC5TdBOMF18/MiF63bbjteRywYN52gL4LLMrbW/3YmJBWR1QhdLsX5bWSIDcEND91NE5kKgj9QUr51u/76WWv0ogdCSIVEs7W5AafYhRMBJ8aADRVCEbglBnP3xYjjzk/LaEWg4s/A0WERXFn1+JQhxQqKP6FrDgumwBMjLODjskCRbKTEbWLHVIbWOaeR+ghD4atf5OygnhF2O7tufimmU0km57Q46hlAoO82xIfYGG355tSFQd5t7uNdxYS6lwl6bw8GeAfhOIh5K1Zxv2eOR0MYWTUbe/AyTzzgdiV8EjBXErvcafNIAxC171H+NcAId5baCVAdAzZkln6KeC9MaH9THc8Zec/UBLJY9iKamiOyyvSjMg3CRZoUMTprTue/TZn+rsyfavFb8kpq7+br5osWvZNCYSA2/2SpqbuoYqtiOSfPIKlVVuRchZVPTvpQN39qDAwEAAAAEQEvvv8IAVQMnAGAJZx4WwzoWTQAAAABJRU5ErkJggg==); 80 | } 81 | .pubd-start>.star.stars 82 | {/*开始按钮前面的快速收藏图标-已收藏*/ 83 | background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAQAAABIkb+zAAAC0ElEQVR4Ae3aA9AcSxQF4PNs2+ay73m2bRVebNu2bSeloBDbtp1CbJubTOydTZY9Xenvln+d8696bg0sy7Isy7Isy0Xwcf8TMJnkl3wwGUdwBMz1xn2MMPLGfTCVykaHjsoKU8mA0wXYH2Z69i45crqAHHn2LphI/qNzdtQ/MJH0Pl9AesE8vtt58HwBHvTdDtPIr3QumZ9hGva4tIB0g2Fu4d5LC3AHboFJwt/SuXzkK5iE7a8q0BYGuYk7rizATbgJpuAndK4e9SFMIc2jFWATmIKbohWQ1TCDeodO9AmHzShQz60Aa8MEXOFWQJbA+0I+Ou4Teh1ex2qxCkglZJpk4TgZf/3D7bEKcFtcv2ucZEHy+Ad309Ewu/kHUsP/HCdlPP4k/3NIoZtZlZGMhY+wKm5GqskHXJuJ+LJKPkB68AHpk/b4fXz3Ip2YnQfSFn6fyob04ysyOy3xZ4dfRGbwNjaQEykNf5z1cSsyiV9yY8oKbOSXyLzAQxyckviDAw9BFxaUw0mFP6gK6D99Lk44/uLgG9DvxTuldULxW756B7xCFY03vhSBl0ijuAs0hJfI6rgLrIZ3hBSd+EeF4BVSJ5ECrG3AHiLWyFIj9hAG7CikeqIFVBV4ARcmWkDmQz/1QsyQXU6N4z7qBejGiu7XV/IfAMh/ss/1e8pBN5l97eur8Itu38UZnnwCyQk2ufz6irdJ4+gVfE9CJ5aOtj7kd4iC33FblLIloJNMuyrSWPe75PxPRNnwTYI+vievCHNMKuEmxHKzVGbk8qebxicRi10Wf618kNCGrxB0kQmXxOjHB65/w3fpOkDGQA/fwxd2Q4dUgSTWARHfw9BBFTgXYHnIl+AhcPm535AHOsgoOnSk04t3IkG8++xBQ4ZpeQIxIvv4B5J0+qCh5d5SlStVy9jTBw0N95bKDylcxt6qfoRlWZZlWZZlWZZlWTeWk0IlBrn4IB9WAAAAAElFTkSuQmCC); 84 | filter: sepia(1) saturate(5) brightness(3) drop-shadow(0 0 2px yellow); 85 | } 86 | .pubd-start>.menu 87 | {/*开始按钮后面的菜单按钮*/ 88 | background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgAQMAAADYVuV7AAAABlBMVEUAAAAzMzPI8eYgAAAAAXRSTlMAQObYZgAAABxJREFUeAFjIBOMAv7/UPCBlhzywWgYjIbBKAAANijXKaI5RRgAAAAASUVORK5CYII=); 89 | } 90 | .pubd-start>.pubd-icon,.pubd-start>.text 91 | { 92 | height:100%; 93 | position: relative; 94 | display: inline-block; 95 | vertical-align: inherit ; 96 | text-align:center; 97 | box-sizing: border-box; 98 | } 99 | .pubd-start>.pubd-icon:hover,.pubd-start>.text:hover 100 | { 101 | background-color: rgba(0,0,0,0.2); 102 | } 103 | 104 | .pubd-start>.text 105 | {/*开始按钮文字*/ 106 | width: calc(100% - 50px); 107 | } 108 | .pubd-menu 109 | {/*菜单*/ 110 | z-index: 1000; 111 | position: absolute; 112 | margin: 0; 113 | text-align: left; 114 | width: 152px; 115 | background-color: #fafafa; 116 | border: 1px solid #979797; 117 | box-shadow: #666 2px 2px 3px; 118 | list-style: none; 119 | padding: 0; 120 | } 121 | .pubd-menu-item 122 | {/*菜单项*/ 123 | position: relative; 124 | border: transparent 1px solid; 125 | margin: 2px; 126 | } 127 | .pubd-menu-item:hover 128 | {/*菜单项悬停变色*/ 129 | /*background-color: #CEE7FF;*/ 130 | border: #AECFF7 1px solid; 131 | border-radius: 3px; 132 | background-image: 133 | linear-gradient(to bottom, RGBA(237,242,247,0.3) 0%,RGBA(188,220,238,0.2) 20%,RGBA(239,246,252,0.4) 40%,RGBA(192,217,238,0.4) 41%, RGBA(195,219,243,0.6) 100%) 134 | ; 135 | background-repeat: no-repeat; 136 | box-shadow: white 0 0 1px inset; 137 | } 138 | .pubd-menu-includesub::after 139 | {/*子菜单后面的箭头*/ 140 | content: "►"; 141 | font-size: 8px; 142 | position: absolute; 143 | top:5px; 144 | right: 6px; 145 | } 146 | .pubd-menu-includesub:hover>.pubd-menu-submenu 147 | {/*让子菜单鼠标悬停显示*/ 148 | display:block !important; 149 | } 150 | .pubd-menu-submenu 151 | {/*子菜单*/ 152 | position: absolute; 153 | top: 0; 154 | left: 145px; 155 | } 156 | .pubd-menu-item-a 157 | {/*菜单项链接*/ 158 | padding-left: 2px; 159 | padding-right: 9px; 160 | font-size: 12px; 161 | cursor: pointer; 162 | display: block; 163 | color: black !important; 164 | text-decoration: none !important; 165 | } 166 | .pubd-menu-item-a .text 167 | {/*菜单项链接文字部分*/ 168 | vertical-align: middle; 169 | line-height: 2; 170 | } 171 | .pubd-menu-line 172 | {/*菜单项,线*/ 173 | border-top: 1px solid #e0e0e0; 174 | border-bottom: 1px solid white; 175 | height: 0; 176 | margin: 0 4px; 177 | } 178 | /*菜单项“选项”*/ 179 | /*.pubd-menu-setting 180 | { 181 | }*/ 182 | .pubd-menu-item .pubd-icon 183 | {/*菜单项图标*/ 184 | margin: 0 2px; 185 | line-height: 2; 186 | } 187 | .pubd-menu-this-user .pubd-icon 188 | {/*菜单项-选项的图标-下载当前画师*/ 189 | background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAQAAABIkb+zAAACHklEQVR4Ae3agWYcURTG8aMVW7WU0gJJg6F01rbzHehTVEELENAnSJ4hFiiobkq6T5C8QGkoqsAuBCgUpUBsbVslmUYFI1+7IXdy71y+/wXMLH7rHAbXlFJKqcs0WMUWDvzI6ys+RzjA1mDV2qzs+z5OvI53cOL7Zd/aqehh5nX8g1nRszbCjtdpDnYsPBQ4TgY4RmGh+bbXCc+2hYZpSgBmFpr/TAnwRTigTnsEEEAAAa72CMA/aB8ggAACCCCAAAIIIIAAAggggAAC4DXGOQM++Yqv4GOugK/VHTtteBffMgTg18PKzsJj/901wARvLwA8t0Z40SkADv3m+g0cLnnjpZ0Lu90BLKoHdhoKX/znjQ923c7Fy5wMgA07C8/++caX8rZxvMyJABNr5G/o+Y/hwCha5ngAnn5rxJvgT42iZY4J4OlvRJuAkXG8zKkA2DCusQl4Z9eM4mWOC6Dp5/zV3+ef/ZZRS5Y5HoCmn//VKb4P7xu1ZJkjAmj6uUfr1ROjli1zXABNf3jYjQmYWAvxMkcA0PQHxcscA8DTHx4vc3uA8OkPW+ZwwNzrhGceDEh/5SwUMEoKGAUDqnspr136WjDADOP0F1+DAEUP0w5fPWYAV/axF/vyN/bKvlkgoJmv+Wac6/f+3jd59oMB8RNAAAEEiJIA88xv5mKaO2CUHYC/97MCcBhnB+Dv/QwB/L2fMYC/97sJUEoppf4AxF4KMk77RSYAAAAASUVORK5CYII=); 190 | } 191 | .pubd-menu-this-illust .pubd-icon 192 | {/*菜单项-选项的图标-下载当前作品*/ 193 | background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAQAAABIkb+zAAAB9ElEQVR4Ae2bgUYEURSGT0JkpReoYIQ21Z7zBEHPMQQEoAAISA8QqjAEQAEIah9hFwKkN2hbVqHdqcix6O5xd53mjv7vAFz4OP+PmXsJAAAAAACE2VzhI25LT8o/nh63+WhzhWah2ZBbHklZ3fBIbpsNmo5sgbtSVj/czRZoGvhCyjSGLygezniYjMCQM4pFTqRMaE4oFu6kJMBdikXeUhKQQbxAmdbUXAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAASupKingP4wkkV+rKkAv7TW6IvWhgxqKMAj2aMfOK+jwDGNIUXdBO5ojsbQJFQucMVn9il+3lmmcTQJ/gJmq9C83Bun3nmLfoHzagW0VbIleZp0rrVPAaRwEohtle11eQ2eu6YgmgR/AbNVduUj8q6DJsFZwGgVRQ4CS2bAubuA0SqKXAaWzEAKT4GIVvnuo/CSWUnwFzBaRfsouGRGEvwFjFbRPtIli4BzfwG7VbSPdMkikMJfwGoV7aPgkhlJcBTQVvFBk+ArcEzOcO4koK3ijhQOAtoqvmgSHATsVvFNwswCdqt4JgEftuIHAhDoJyXQ/39Xj/k0KYFTiqW1ltL1e1mlePi8tg8g9AlKp55PUJRmg2+qfgTEN80GzYKsymE1z7DkQQ4n7T4AAAAAAPgE2JrdC03pqrUAAAAASUVORK5CYII=); 194 | } 195 | .pubd-menu-multiple .pubd-icon,.pubd-multiple .pubd-icon 196 | {/*菜单项-选项的图标-多画师下载*/ 197 | background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAQAAABIkb+zAAACQ0lEQVR4AezZNZAUURSF4a7NyHB3t5npd08RIRHukOLu7k6GS4ITQoa7Q4i7a4o7rO/DZce6b+2pjt534r/67qzveo7jOI7jOI7jOI7jaDSvZEbgMO7LZ/mE+3LQjIhVIPTRMPWwCQWwpSd52Bivze/p/D7Ihc2wXL8Pv6fCFNjsk4n8nkZ6SkngASWmN6XnMzXxBTZ48ileldDzyQ7YkNtO6NniDWDDTopNTULPZabDhp8ZS+i5cEJzgOwn9FzySHXAdULPhS+qA15yewL5rDrgBbcnwGPVATe4PYGc1H8S8noCzNB/GeT1BLGGmm9EiVrsngA7Q5+wjd8TJGrpfxhj9gSmd4jHl/id+D2NTAt6PMbzeyrpn/VXwu78ng519b+UM3uKVhX//7MIDmFkrAK/dxzHcRy2HMRkjKyX3XIZr2B/7xUuyG5ZL2Mk7uV4oaCvvAjuaRJNMVfOyTMUwGaf5MsznMU8v4kXwHTDF3WvJ3FZipuw+uHW9zLmZYF28knRa8UqYJE8hC3b5CEWZf45x3RAQaheK15V1uIrLGlfZW2m37LMYH0f/MqvQS4seblYk/6VlIO6PoAMxIfkmLYPMjDtPz5yFX12GEc4U/0/MCxX9+nJRMaJ+hNQGQWEN8EMgo1mZrCXRHar+2TNK+E9bER737ySVwrGq/tkZiFsdDMLvVL8Nuo+Ga7xztP/BwY11H0y5MJGuFyvlNrl1H0y2GhX1ud/a38OBAAAABgG+Vvf4yuDBAQEBAQEvgIAAAAQM/51H4xXwfgaAAAAAElFTkSuQmCC); 198 | } 199 | .pubd-menu-setting .pubd-icon,.pubd-config .pubd-icon 200 | {/*菜单项-选项的图标;选项面板的图标*/ 201 | background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAQAAABIkb+zAAAEbklEQVR4Ae3aY4AkOxQF4LO2bXu3p3POs23btm3btm3btm3b9uvZPKyVSVK10/lR3/k3yO3bzE01ChMVCoVCoWBW5gHO7G1qkK7yorJ1xyyHVPFUWY9ciFTpLp8G+ChSpfe8GvgSiWok65f+zZGimqG+DdQYpKi8lKxnVkWKtJ13A3siRTrJtwGeixTxNu8GHkSK+JZ3A5+ifvVuwWv5qQ4f3cdx8+fQX7K+4RKOd7NeOoj3mJ3QGHnhoePL1vJGLYZplGflHbKBedjMgmloQV6jyvhqxyMf6jvVffumth/cFuOVuvIa2bjwOvXAeMPacGu9McXvKxyMPOj66ZT+hWeakQA30A+yGfKjtkQDM5Kn8pfp/PYuZGfmc5R/TzZ7+IHjd8sio0Z8VbZ64dtqgiy4jWx1w90Qb0wHfidb5fxqumSfsKoanoc4ZiTHyqaQchkx+KBsInky6oBENp1wbYQZ3EwfZi76HR/iKTxaF+ou/ZRxtc/UEiHMPpnK3aedS6Mxmf7NzRq8J9OaB8PfqI76NbrQXWYWzIBm592x6/KP0d3gS4tFFvmz7ucq19bfke9FS8FXub2+iCjxTXlWr9Xn0tcRq389vFPYFvq5sAKsNfPBk6jfA1d/rTQg+H2IZ4aUMLsjgFkuqIFLe7dADK2l3zxLvIRAutr3xWu2QDyO8Nvzm0UQqDRAFY+VP6wxiDd+1LuxzjKPIIKuqmtd3q12yIN2cd9b3BwRuI77TUH7ogHywqMdxSpjOiCC2jl3u6chT7zEUeoNRNKbjlWvRp5cWwA+AIfoDft9yJOedDRwBSLxSkcDT9RbA7oUkXRZTAP5P9j3I5Luj3tiRuA19f0i5nXIE89wvY2qXdyhjSr1czW5gfZlrawjayECN3OtybE8BA2Rndp5TFFXIQIfrWtdPjCqI7KpMV7DfcW9W4+f+vhJps2c2cL3qguvQSC97Lud5qaRl5V0qUeByINw7hY20AxuFrxb52uyQfld9L/mwNrA1V9S37BjlW9ixm6/oZ6KWZ1fltvHf2kgx2MVsy7/jDxWWRS+RnXXX7KRudN1sKU7468TBE0d5jDZDLnLrDnly65mlNmJD2Rac0+EUEt+JZspP/F2XcijdRof0g+yGfOhmiCMWU82oawQOQOkET6IGJo9kQYqZiTi6MIkGjgJsUwX/Vr1p893YzognvaUrXK2RBZqog+rev+/igbIRivEfE3DHf9VzHwz60TiJ55cGoYGZgv9lPFK5gYASzxTv8VNGR7MyKmG71e0ZakVxlMP3hh9868sdZ1sdN1B7045yqgv8sETxi/6t64uL4BpmFn0cPimbzrDYgMtxpsmzAo8BHlRE7MT7zUHjuruaHIJWe/85Xpum346gp/yGrVE/dLn3g28iRQFPI1uRYp4vncDJyJF3Nu3AbMtUsTVvRtYEimivMfzIUjR4La++3s0Qpo8v8TxLlLFx/0+g5EqXuTTAE9FQiJO9LgE0sWS2YcHuGJWwQSFQqFQKBT+AfVgCeOyGbjFAAAAAElFTkSuQmCC); 202 | } 203 | .pubd-menu-close .pubd-icon 204 | {/*菜单项-关闭的图标*/ 205 | background-position-y: -701px; 206 | } 207 | 208 | dt 209 | {/*列表标题*/ 210 | margin-top: 5px; 211 | } 212 | dt:first-child 213 | {/*列表标题-第一个*/ 214 | margin-top: 0; 215 | } 216 | .pubd-dialog 217 | {/*对话框*/ 218 | position: absolute; 219 | overflow: auto; 220 | left: calc(50vw - 210px); 221 | top: 120px; 222 | z-index: 9000; 223 | min-width: 210px; 224 | resize:both; 225 | padding: 30px 8px 8px 8px; 226 | background-color: RGBA(191,214,236,0.8); 227 | background-image: 228 | linear-gradient(150deg, RGBA(255,255,255,0.6) 10%,RGBA(255,255,255,0.4) 30%, RGBA(255,255,255,0) 50%), 229 | linear-gradient(210deg, RGBA(255,255,255,0.6) 10%,RGBA(255,255,255,0.4) 30%, RGBA(255,255,255,0) 50%), 230 | linear-gradient(to bottom, RGBA(237,242,247,0.4) 0%,RGBA(188,220,238,0.7) 20%,RGBA(239,246,252,0.9) 40%,RGBA(192,217,238,0.9) 41%, RGBA(195,219,243,0) 100%); 231 | background-repeat: no-repeat; 232 | background-size: 160px 80px, 160px 80px, 100% 300px; /*100vw 100vh*/ 233 | background-position: top left, top right, top left; 234 | background-attachment: scroll,scroll,scroll; 235 | border: #147DF2 solid 1px; 236 | border-radius: 5px; 237 | box-shadow: white 0 0 3px inset,white 0 0 3px inset,#72BBFE 0 0 4px; 238 | /*transition: box-shadow ease-in-out 0.1s;*/ 239 | backdrop-filter: blur(5px); /*未来的浏览器能支持就好了*/ 240 | } 241 | .pubd-dialog.pubd-dialog-transparent .dlg-content 242 | {/*透明背景对话框内容*/ 243 | background: transparent; 244 | border: none; 245 | outline: none; 246 | } 247 | .pubd-touch .pubd-dialog 248 | {/*手机版界面的对话框*/ 249 | box-sizing: content-box; 250 | top:0 !important; 251 | left:-9px !important; 252 | width: 100% !important; 253 | } 254 | .pubd-touch #pubd-config 255 | { 256 | height: 900px; 257 | } 258 | /*对话框悬停 259 | .pubd-dialog:hover 260 | { 261 | } 262 | */ 263 | .pubd-dlg-active 264 | {/*对话框激活*/ 265 | box-shadow: white 0 0 3px inset,white 0 0 3px inset,#72BBFE 0 0 8px,#72BBFE 0 0 8px; 266 | z-index: 9001; 267 | } 268 | .pubd-dialog .dlg-cpt-btns 269 | {/*对话框标题按钮组*/ 270 | position: absolute; 271 | top: 0; 272 | right: 8px; 273 | } 274 | .dlg-cpt-btns .dlg-cpt-btn 275 | {/*对话框标题按钮*/ 276 | background-color: RGBA(191,214,236,0.5); 277 | background-image: 278 | linear-gradient(to bottom, RGBA(255,255,255,0.6) 0%, RGBA(239,246,252,0.8) 40%, RGBA(200,210,222,0.8) 100%); 279 | display: inline-block; 280 | border: #147DF2 solid 1px; 281 | border-right-width: 0px; 282 | border-top: none; 283 | border-radius: 0; 284 | width: 50px; 285 | height: 20px; 286 | cursor: pointer; 287 | overflow: hidden; 288 | transition: background-image ease-in-out 0.1s,box-shadow ease-in-out 0.1s; 289 | text-decoration: none !important; 290 | } 291 | .dlg-cpt-btns .dlg-cpt-btn:first-child 292 | {/*对话框标题按钮第一个*/ 293 | border-bottom-left-radius:5px; 294 | } 295 | .dlg-cpt-btns .dlg-cpt-btn:last-child 296 | {/*对话框标题按钮最后一个*/ 297 | border-bottom-right-radius:5px; 298 | border-right-width: 1px; 299 | } 300 | .dlg-cpt-btns .dlg-cpt-btn:hover 301 | {/*对话框按钮悬停*/ 302 | background-image: 303 | linear-gradient(to bottom, RGBA(255,255,255,0.6) 0%, RGBA(158,197,215,0.8) 40%, RGBA(118,175,252,0.8) 100%); 304 | box-shadow: #72BBFE 0 0 8px,#72BBFE 0 0 8px; 305 | } 306 | .dlg-cpt-btn .dlg-cpt-btn-text 307 | {/*对话框按钮上的文字*/ 308 | display: block; 309 | text-align: center; 310 | line-height: 20px; 311 | font-size: 12px; 312 | font-weight: bold; 313 | color: #fff; 314 | text-shadow: -1px -1px 1px #147DF2,1px 1px 1px #147DF2,-1px 1px 1px #147DF2,1px -1px 1px #147DF2; 315 | transform:scaleX(1.5); 316 | } 317 | .dlg-cpt-btns .dlg-btn-close 318 | {/*对话框关闭按钮特殊颜色*/ 319 | background-image: 320 | linear-gradient(to bottom, RGBA(255,255,255,0.6) 0%, RGBA(248,142,142,0.8) 40%, RGBA(237,112,112,0.8) 100%); 321 | } 322 | .dlg-cpt-btns .dlg-btn-close:hover 323 | {/*对话框关闭按钮悬停特殊颜色*/ 324 | background-image: 325 | linear-gradient(to bottom, RGBA(255,255,255,0.6) 0%, RGBA(236,38,38,0.8) 40%, RGBA(211,26,26,0.8) 100%); 326 | box-shadow: #F40000 0 0 8px,#F40000 0 0 8px; 327 | } 328 | .dlg-cpt-btns .dlg-btn-close .dlg-cpt-btn-text 329 | {/*对话框关闭按钮文字*/ 330 | text-shadow: -1px -1px 1px #a00,1px 1px 1px #a00,-1px 1px 1px #a00,1px -1px 1px #a00; 331 | } 332 | .pubd-dialog .caption 333 | {/*对话框标题*/ 334 | position: absolute; 335 | font-size: 14px; 336 | line-height: 28px; 337 | top: 0; 338 | left: 0; 339 | width: calc(100% - 5px); 340 | height: 30px; 341 | padding-left: 5px; 342 | cursor: move; 343 | text-shadow: white 0 0 5px,white 0 0 5px,white 0 0 5px,white 0 0 5px; 344 | /*background: RGBA(0,0,0,0.2); */ 345 | } 346 | .pubd-dialog .caption span 347 | {/*对话框标题文字*/ 348 | margin-left: 3px; 349 | } 350 | .pubd-dialog .dlg-content 351 | {/*对话框内容*/ 352 | padding: 5px; 353 | margin: 0; 354 | border: #147DF2 solid 1px; 355 | outline: white solid 1px; 356 | height:calc(100% - 12px); 357 | overflow: auto; 358 | } 359 | .pubd-dialog .dlg-content 360 | {/*对话框内容和框架标题都要设置相同的背景颜色*/ 361 | background-color: #F0F0F0; 362 | } 363 | .pubd-dialog dl:first-child 364 | {/*对话框内容内的列表*/ 365 | width:100%; 366 | height:100%; 367 | box-sizing: border-box; 368 | padding: 0; 369 | margin: 0; 370 | overflow: auto; 371 | } 372 | .pubd-dialog dl dd 373 | {/*列表名内容*/ 374 | margin: 0; 375 | } 376 | .pubd-progress 377 | {/*进度*/ 378 | width: 100%; 379 | box-sizing: border-box; 380 | text-align: center; 381 | position: relative; 382 | display:inline-block; 383 | background-color: #CDCDCD; 384 | border: #8C8C8C solid 1px; 385 | box-shadow: 0 0 1px #fff inset, 0px 5px 4px #FFF inset,0px -3px 2px #DDD inset, 0px 0px 4px #000 inset; 386 | overflow: hidden; 387 | } 388 | .pubd-progress,.pubd-progress .pubd-progress-bar,.pubd-progress .pubd-progress-text 389 | {/*进度条三个部分的通用设置*/ 390 | height: 24px; 391 | line-height: 24px; 392 | font-size: 15px; 393 | border-radius: 3px; 394 | } 395 | @keyframes progressMoveOverlay 396 | { 397 | from {background-position-x:calc(0% - 100px),0,0,0;} 398 | 30% {background-position-x:calc(100% + 100px),0,0,0;} 399 | to {background-position-x:calc(100% + 100px),0,0,0;} 400 | } 401 | .pubd-progress .pubd-progress-bar 402 | {/*进度条*/ 403 | position: absolute; 404 | top:0; 405 | left:0; 406 | transition: width 0.2s ease-in-out; 407 | background-color: #00D328; 408 | background-image: 409 | linear-gradient(to right, transparent 0%,RGBA(255,255,255,0.6) 50%, transparent 100%), 410 | linear-gradient(to bottom, RGBA(255,255,255,0.8) 0%,RGBA(255,255,255,0.6) 6px,transparent 8px), 411 | linear-gradient(to top, RGBA(255,255,255,0.6) 0%,transparent 6px), 412 | linear-gradient(to right, transparent 1px, RGBA(100,100,100,0.1) 1px, RGBA(100,100,100,0.3) 5px, RGBA(100,100,100,0.1) 13px, transparent 20px,transparent calc(100% - 20px), RGBA(100,100,100,0.1) calc(100% - 13px),RGBA(100,100,100,0.3) calc(100% - 5px),RGBA(100,100,100,0.1) calc(100% - 1px), transparent calc(100% - 1px)) 413 | ; 414 | background-position: center center,top left,top left,top left; 415 | background-repeat: no-repeat; 416 | background-size: 60px 100%,100% 100%,100% 100%,100% 100%; 417 | background-position-x: 110%,0,0,0; 418 | animation: progressMoveOverlay 5s linear infinite; 419 | } 420 | .pubd-progress-right .pubd-progress-bar 421 | {/*进度条*/ 422 | position: absolute; 423 | left:unset; 424 | top:0; 425 | right:0; 426 | } 427 | .pubd-progress .pubd-progress-text 428 | {/*进度文字*/ 429 | position: relative; 430 | text-shadow: white 0 0 1px,white 0 0 1px,white 0 0 2px; 431 | } 432 | .pubd-select 433 | {/*下拉框*/ 434 | width: 100%; 435 | } 436 | .pubd-frame 437 | {/*窗口内框架*/ 438 | border: 1px solid #D5DFE5; 439 | border-radius: 4px; 440 | position: relative; 441 | margin:10px 1px 1px 1px; 442 | padding: 5px; 443 | } 444 | .pubd-frame .pubd-frame-caption 445 | {/*窗口内框架标题*/ 446 | padding-left: 4px; 447 | padding-right: 4px; 448 | } 449 | .pubd-infoCard 450 | {/*一个用户信息框*/ 451 | width: 100%; 452 | box-sizing: border-box; 453 | min-width: 270px; 454 | overflow: hidden; 455 | background-color: white; 456 | border: 1px #888 solid; 457 | border-radius: 5px; 458 | } 459 | .pubd-infoCard .pubd-infoCard-thumbnail 460 | {/*用户信息框头像*/ 461 | width:100px; 462 | height:100px; 463 | display: inline-block; 464 | vertical-align:top; 465 | } 466 | .pubd-infoCard .pubd-infoCard-thumbnail img 467 | {/*用户信息框头像图片*/ 468 | width: 100%; 469 | height: 100%; 470 | object-fit: cover; 471 | object-position: center center; 472 | } 473 | .pubd-infoCard-dl 474 | {/*用户信息框文字列表区域*/ 475 | line-height: 25px; 476 | margin: 0; 477 | padding: 0; 478 | display: inline-block; 479 | width: calc(100% - 100px); 480 | vertical-align:top; 481 | } 482 | .pubd-infoCard-dl dt 483 | {/*用户信息框文字标题*/ 484 | display: inline-block; 485 | margin: 0; 486 | padding: 0; 487 | left:0; 488 | position:relative; 489 | width: 90px; 490 | vertical-align:top; 491 | text-align: right; 492 | } 493 | .pubd-infoCard-dl dd 494 | {/*用户信息框文字内容*/ 495 | display: inline-block; 496 | margin: 0; 497 | padding: 0; 498 | left:0; 499 | position:relative; 500 | width: calc(100% - 90px); 501 | vertical-align:top; 502 | overflow: hidden; 503 | text-overflow: ellipsis; 504 | white-space: nowrap; 505 | } 506 | .pubd-infoCard-dl dt::after 507 | {/*用户信息框文字标题-冒号*/ 508 | content: ":"; 509 | } 510 | .pubd-infoCard-dl dt:nth-of-type(even),.pubd-infoCard-dl dd:nth-of-type(even) 511 | {/*用户信息框文字标题*/ 512 | background-color:#EEF; 513 | } 514 | .horizontal-list 515 | { /*垂直排列的列表*/ 516 | margin: 0; 517 | padding: 0; 518 | list-style: none; 519 | } 520 | .horizontal-list>li 521 | { 522 | display: inline-block; 523 | } 524 | /*▼选项对话框相关*/ 525 | .pubd-config 526 | {/*选项对话框宽度*/ 527 | width: 400px; 528 | left: calc(50vw - 200px); 529 | top: 120px; 530 | } 531 | .pubd-config input[type="text"],.pubd-config input[type="email"],.pubd-config input[type="password"],.pubd-config input[type="url"],.pubd-config textarea 532 | {/*文本输入框*/ 533 | height: 20px; 534 | padding: 0 4px; 535 | color: #333; 536 | font-size: 12px; 537 | border: 1px solid #becad7; 538 | box-sizing: border-box; 539 | } 540 | .pubd-tologin, 541 | .pubd-open-refresh-token, 542 | .pubd-downscheme-new, 543 | .pubd-downscheme-remove, 544 | .pubd-rpcchk, 545 | .pubd-reset, 546 | .pubd-save 547 | {/*选项面板按钮*/ 548 | width: 80px; 549 | margin-left: 5px; 550 | box-sizing: border-box; 551 | } 552 | 553 | .user-avatar 554 | { 555 | border-radius: 50%; 556 | overflow: hidden; 557 | width: 40px; 558 | height: 40px; 559 | } 560 | .user-account 561 | { 562 | color: rgba(0, 0, 0, 0.32); 563 | } 564 | .user-account::before 565 | { 566 | content: "@"; 567 | } 568 | .avatar-img 569 | { 570 | width: 40px; 571 | height: 40px; 572 | object-fit: cover; 573 | object-position: center top; 574 | } 575 | .pubd-token .horizontal-list>li 576 | { 577 | margin-right: 10px; 578 | vertical-align: text-bottom; 579 | } 580 | .pubd-token .horizontal-list>li:last-of-type 581 | { 582 | margin-right: 0; 583 | } 584 | .pubd-token .horizontal-list>li:nth-of-type(1) 585 | { 586 | width: 40px; 587 | } 588 | .pubd-token .horizontal-list>li:nth-of-type(2) 589 | { 590 | width: calc(100% - 40px - 80px - 5px - 20px); 591 | } 592 | .pubd-tologin 593 | { 594 | height: 40px; 595 | } 596 | .pubd-token .horizontal-list>li:nth-of-type(3) 597 | { 598 | text-align: center; 599 | width: 80px; 600 | } 601 | .pubd-config .pubd-token-expires 602 | {/*token进度条*/ 603 | top: 5px; 604 | width: calc(100% - 85px); 605 | } 606 | 607 | .pubd-config .pubd-frm-downthis label, 608 | .pubd-config .pubd-frm-clicknotification label, 609 | .pubd-config .pubd-frm-termwisetype label 610 | {/*下载该画师窗口设置,点击通知设置,逐项发送设置*/ 611 | width: 50%; 612 | } 613 | 614 | .pubd-config .pubd-downscheme 615 | {/*下载方案下拉框*/ 616 | width: calc(100% - 170px); 617 | box-sizing: border-box; 618 | } 619 | .pubd-config .pubd-selectscheme-bar 620 | {/*下载方案详细栏-dd*/ 621 | height: calc(100% - 440px); 622 | } 623 | .pubd-config .pubd-selectscheme 624 | {/*下载方案详细栏-frame*/ 625 | height: 100%; 626 | box-sizing: border-box; 627 | } 628 | .pubd-config .pubd-selectscheme .pubd-frame-content 629 | {/*下载方案详细栏-frame-具体内容*/ 630 | height: 100%; 631 | box-sizing: border-box; 632 | } 633 | .pubd-config .pubd-rpcurl 634 | {/*RPC地址*/ 635 | width: calc(100% - 85px); 636 | } 637 | .pubd-config .pubd-rpcchk-info 638 | {/*RPC地址检测信息*/ 639 | float: right; 640 | } 641 | .pubd-config .pubd-downfilter, 642 | .pubd-config .pubd-savedir, 643 | .pubd-config .pubd-savepath, 644 | .pubd-config .pubd-textout, 645 | .pubd-config .pubd-proxyurl, 646 | .pubd-config .pubd-downloadurl 647 | {/*下载目录与保存目录,文本输出格式*/ 648 | width: 100%; 649 | } 650 | .pubd-config .pubd-mask-name 651 | {/*自定义掩码-名*/ 652 | width: 100px; 653 | } 654 | .pubd-config .pubd-mask-logic 655 | {/*自定义掩码-逻辑条件*/ 656 | width: calc(100% - 165px); 657 | margin-left: 5px; 658 | } 659 | .pubd-config .pubd-mask-content 660 | {/*自定义掩码-内容*/ 661 | width: 100%; 662 | } 663 | .pubd-config .pubd-textout-bar 664 | {/*文本输出模式格式-dd*/ 665 | height: calc(100% - 403px); 666 | min-height: 32px; 667 | } 668 | .pubd-config .pubd-mask-list-bar 669 | {/*自定义掩码列表-dd*/ 670 | height: 71px; 671 | box-sizing: border-box; 672 | } 673 | .pubd-config .pubd-textout,.pubd-config .pubd-mask-list 674 | {/*文本输出模式格式、掩码列表*/ 675 | resize: none; 676 | min-height:32px; 677 | height:100%; 678 | box-sizing: border-box; 679 | } 680 | .pubd-config .pubd-mask-add,.pubd-config .pubd-mask-remove 681 | {/*自定义掩码-加减*/ 682 | padding: 0; 683 | text-align: center; 684 | width: 25px; 685 | margin-left: 5px; 686 | box-sizing: border-box; 687 | } 688 | .pubd-config .pubd-config-savebar 689 | {/*保存按钮栏*/ 690 | text-align: right; 691 | margin-top: 5px; 692 | } 693 | .pubd-config .pubd-reset 694 | {/*重置按钮*/ 695 | float: left; 696 | } 697 | .pubd-help-link:hover 698 | {/*帮助按钮*/ 699 | text-decoration:underline; 700 | font-weight:bold; 701 | } 702 | /*▲选项对话框相关*/ 703 | /*▼登录对话框相关*/ 704 | .pubd-login 705 | {/*登录对话框*/ 706 | left: calc(50vw - 180px); 707 | top: 150px; 708 | resize: none; 709 | } 710 | .pubd-login .pubd-icon, 711 | .pubd-config .pubd-tologin::before 712 | {/*登录对话框图标*/ 713 | background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAQAAABLCVATAAAAiUlEQVRIx2NgGAXUAfU4YDqDOGkG/ccJ3zGYUMeg/wxHqOE1kEE/qBF2EDfR2yAH6hgECod6yg0Khyqtp9QgFoa1eI0iwWv4jSIpsPEZhcWgejywheELDqOwGPSfSFhPN4Oo5jWqBTaNo59qCZJqWYRqmZaKxchgLCGpWvhTrTqiWgVJtSp7ZAMAVUD54xft5gkAAAAASUVORK5CYII=); 714 | } 715 | .pubd-config .pubd-tologin::before 716 | { 717 | content: ""; 718 | background-size: 100%; 719 | background-repeat: no-repeat; 720 | display: inline-block; 721 | width: 16px; 722 | height: 16px; 723 | vertical-align: bottom; 724 | } 725 | .pubd-config .logged-in .pubd-tologin::before 726 | { 727 | background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAQAAABLCVATAAAAmElEQVRIx2NgGAXEA3GGdIZ6HJAEYMLwjuE/TkgCOILHGJIM+gHWQAWvkWzzoDLIgToG1YPDkmKDoqAq6yk1iI1hC36jiPcaO8NWfEaREtjsDNtwG4VpUD0e2M7wHZdRmAb9JxLW080gqnmNaoFNljHEG0TAGOINiqRWFmFgqKNOpgUB+6FVQlKt8KdadUS1CpJqVfYowA0Ansv6NifHuRwAAAAASUVORK5CYII=); 728 | } 729 | .pubd-login a 730 | { 731 | text-decoration: underline; 732 | } 733 | 734 | .pubd-login .pubd-pixiv-app-link, 735 | .pubd-login .pubd-refresh-token 736 | { 737 | position: relative; 738 | width: 350px; 739 | } 740 | .pubd-login-official-link::before 741 | { 742 | content: ""; 743 | display: inline-block; 744 | width: 16px; 745 | height: 16px; 746 | background-image: url(https://www.pixiv.net/favicon.ico); 747 | background-size: 100%; 748 | background-repeat: no-repeat; 749 | } 750 | .error-msg-list 751 | { 752 | box-sizing: border-box; 753 | margin-bottom: 0; 754 | width: 100%; 755 | list-style-type: none; 756 | padding: 0; 757 | } 758 | .error-msg-list-item 759 | { 760 | box-sizing: border-box; 761 | width: 100%; 762 | background-color: rgba(0,0,0,.3); 763 | margin: 0 auto; 764 | margin-bottom: 2px; 765 | padding: 13px 10px; 766 | font-size: 14px; 767 | line-height: 1.5; 768 | color: #fff; 769 | text-align: left; 770 | border: none; 771 | border-radius: 4px; 772 | } 773 | /*▲登录对话框内容*/ 774 | /*▼刷新Token对话框内容*/ 775 | .pubd-refresh-token 776 | { 777 | width: 300px; 778 | resize: none; 779 | } 780 | .pubd-refresh-token .pubd-icon 781 | {/*登录对话框图标*/ 782 | background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAQAAABLCVATAAABKUlEQVRIx2NgGAXDC8gyZDFsYbjN8BkIbzFsZshkkEaRryfGECmG2Qy/Gf6jwd8MMxjE4cb8J2yMH8MnDENg8CODB9QYggblMfyFatrDkMKgysADhKoMqQwHoaJ/gN78T9ggP6gxtxjsMeRcGR6guA5v2EA8dZBBEKu8GMNj4gyaDXWNIA75euJcJAONKXuijMFjUDZYejeRxuAxaCtYOpVIY/AYdAMsrU55poDEGO8gMohqXsMX2MggGaxuLbnRjwB7wOqyyE+QEGALVvOdQYKSLMLAwAcs6kBqZhEq0PBnWj6Gw2D51/jdQ6gYsQaKguT+MgQQE3eYBRsnMEkkQYMYZEwKsckAX1H7liGQlBSFvfD/yTAXGLMUVEdfGe4DWXnkGDIKBjMAAL+l1wS3lXpIAAAAAElFTkSuQmCC); 783 | } 784 | .pubd-refresh-token .logo-box 785 | { 786 | text-align: center; 787 | margin-bottom: 10px; 788 | } 789 | .pubd-refresh-token .pubd-refresh-token 790 | { 791 | box-sizing: border-box; 792 | width: 100%; 793 | } 794 | /*▲刷新Token对话框内容*/ 795 | /*▼下载当前画师窗口内容*/ 796 | .pubd-downthis 797 | {/*下载当前画师*/ 798 | left: calc(50vw - 240px); 799 | top: 180px; 800 | width: 400px; 801 | } 802 | .pubd-downillust 803 | {/*下载当前作品*/ 804 | left: calc(50vw - 340px); 805 | top: 200px; 806 | width: 400px; 807 | } 808 | .pubd-down .pubd-icon 809 | {/*选项对话框图标*/ 810 | background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgAgMAAACf9p+rAAAACVBMVEUAAAAzMzMyMjIH2j3VAAAAA3RSTlMA/4CE6rqMAAAAc0lEQVR4Ae3NoQ0CUBAFQXLuCrmSHkFSCk1cvySo0QQB5I9dsZfjDXk54YTPhQ2uhAluhA7uhAoeTtaFxoXahSoutC40LtQuVHGhdaFxoXahigutC40LtQtVXGhdaFyoXajiQutC40LtQuXivyT63XB8iycdcJ0OPAoNRAAAAABJRU5ErkJggg==); 811 | } 812 | .pubd-dialog label 813 | {/*下载内容单选框*/ 814 | display: inline-block; 815 | } 816 | .pubd-downthis .pubd-down-content 817 | {/*下载内容单选框*/ 818 | width: 50%; 819 | } 820 | .pubd-down dt 821 | {/*中断按钮*/ 822 | position: relative; 823 | } 824 | .pubd-down .pubd-breakdown 825 | {/*中断按钮*/ 826 | position: absolute; 827 | bottom: 0; 828 | right: 0; 829 | padding: 0; 830 | height: 19px; 831 | line-height: 11px; 832 | font-size:12px; 833 | } 834 | .pubd-down .pubd-down-log 835 | {/*下载日志*/ 836 | min-width: 100px; 837 | min-height: 40px; 838 | width: 100%; 839 | box-sizing: border-box; 840 | height: 100px; 841 | resize:none; 842 | } 843 | /*.pubd-down .pubd-down-downbar 844 | { 845 | }*/ 846 | .pubd-down .pubd-textdown 847 | {/*文本下载按钮*/ 848 | width: calc(20% - 5px); 849 | box-sizing: border-box; 850 | height: 50px; 851 | margin-right: 5px; 852 | vertical-align: middle; 853 | } 854 | .pubd-down .pubd-startdown 855 | {/*开始下载按钮*/ 856 | width: 80%; 857 | box-sizing: border-box; 858 | height: 50px; 859 | font-size: 30px; 860 | vertical-align: middle; 861 | } 862 | .pubd-downthis .pubd-down-textout-bar 863 | { 864 | height: calc(100% - 435px); 865 | } 866 | .pubd-downillust .pubd-down-textout-bar 867 | { 868 | height: calc(100% - 335px); 869 | } 870 | .pubd-down .pubd-down-textout 871 | {/*文本输出*/ 872 | min-width: 100px; 873 | min-height: 40px; 874 | width: 100%; 875 | box-sizing: border-box; 876 | height: 100%; 877 | resize:none; 878 | } 879 | /*▲下载当前画师窗口内容*/ 880 | 881 | /*▼导入数据窗口内容*/ 882 | .pubd-import 883 | {/*导入数据*/ 884 | left: calc(50vw - 240px); 885 | top: 180px; 886 | width: 400px; 887 | min-height: 120px; 888 | } 889 | .pubd-import .pubd-import-textarea-bar 890 | { 891 | height: calc(100% - 75px); 892 | } 893 | .pubd-import .pubd-import-textarea 894 | {/*导入内容*/ 895 | min-width: 100px; 896 | width: 100%; 897 | box-sizing: border-box; 898 | height: 100%; 899 | resize:none; 900 | } 901 | .pubd-import .pubd-import-done 902 | {/*导入载按钮*/ 903 | width: 100%; 904 | box-sizing: border-box; 905 | height: 50px; 906 | margin-top:5px; 907 | font-size: 30px; 908 | vertical-align: middle; 909 | } 910 | /*▲导入数据窗口内容*/ 911 | /*▼多画师下载窗口内容*/ 912 | .pubd-multiple .pubd-userlist-ul 913 | { 914 | width: 100%; 915 | height: 200px; 916 | background: white; 917 | border: 1px solid grey; 918 | box-sizing: border-box; 919 | } 920 | /*▲多画师下载窗口内容*/ 921 | .pubd-start, 922 | .pubd-menu, 923 | .pubd-dialog 924 | {/*启用夜间模式时出现文字变白的BUG*/ 925 | color: rgb(31, 31, 31); 926 | } 927 | } 928 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # PixivUserBatchDownload 2 | 中文名:“[P站](//www.pixiv.net/member.php?id=3896348)画师个人作品批量下载工具”,简称 PUBD。 3 | 4 | * #### 为什么要做 PUBD? 5 | PUBD 的理念是在阅览 Pixiv 的过程中,看见喜欢的画师,可以直接一键下载该画师的所有作品。 6 | 7 | 融入网页的体验,不需要专门打开其他程序。 8 | 9 | * #### PUBD 都有哪些功能? 10 | PUBD 的功能主要是可以下载画师所有公开作品,并且可以自定义下载路径、文件名。 11 | 12 | 可以发送到家里的路由、租用的 VPS、家里的安卓智能电视等远程地址下载。(因为我单位上网收流量费😢) 13 | 14 | ![程序运行图](docs/images/preview.png) 15 | 16 | 17 | ## 程序下载 18 | * [从 Greasy Fork 安装](//greasyfork.org/zh-CN/scripts/17879)(推荐) 19 | * [从 GitHub 源文件安装](PixivUserBatchDownload.user.js) 20 | > **用户样式CSS** 自 v5.8 开始已内置为自动加载,不再需要单独安装。 21 | 22 | ## 使用说明 23 | 请访问▶ **[PUBD Wiki](../../wiki)** ◀阅读。 24 | 25 | ### 程序结构与原理 26 | PUBD 主体部分是采用 JavaScript 语言编写的用户脚本。 27 | 28 | PUBD 通过 Pixiv 官方手机 APP 的后台 API 获取作者的作品列表,然后发送到指定的 Aria2 下载器下载,可选用第三方管理器对 Aria2 状态进行管理。 29 | 30 | 下载流程的结构如下图 31 | ![结构图](docs/images/structure.jpg) 32 | 33 | ## 后续功能开发状态 34 | 因为以下等原因,本项目已进入事实停止维护状态,所以后续的开发展望这几年没有添加任何代码。 35 | 1. P站被封锁 36 | 2. 色图太多,下了也看不过来 37 | 3. 本职工作 38 | 4. 有孩子了 39 | 5. [肝手游](https://github.com/Mapaler/PADDashFormation/) 40 | 6. 工作太忙了,手游都不玩了。 41 | 42 |
43 | PUBD 5 已实现 44 | 45 | - [x] 下载逐项发送(不卡死) 46 | - [x] 输出文本信息(下载列表) 47 | - [x] 子菜单快速完成操作(已开发但暂未使用) 48 | - [x] 仅下载当前一幅作品 49 | - [x] 下载过滤器 50 | - [x] 点击通知自动关闭页面 51 | - [x] 扩展菜单内直接打开程序 52 | - [x] 使用 system.multicall 加快 Aria2 请求速度 53 | - [x] 适应新的 oAuth 2.0 登录模式 54 | 55 |
56 | 57 |
58 | PUBD 6 计划 59 | 60 | - [x] 自动标记已快速收藏作者的推荐作品(目前只是添加明式标记,将来把多作者下载做了后,改成切换显示隐藏) 61 | - [x] **使用 ES6 原生模板字符串替代 PUBD 自己实现的掩码写法**(已开发暂未启用,准备 PUBD 6 迁移) 62 | - [ ] **废除自定义掩码,并修改为一个可以任意书写的代码块,可自由定义数组和自定义函数。** 63 | - [ ] **多画师批量下载**(储存画师>储存解析到的数据>一起发送到 Aria2) (IndexedDB 太复杂看不懂,但是是目前努力的方向,用 GM_setValue 储存可能数据多了会太卡。) 64 | - [ ] 每位画师的额外下载内容(用于下载画师头像、背景头图等);每个动图的额外下载内容(用于输出帧率) 65 | 66 |
67 | 68 |
69 | 未列上开发日程的计划 70 | 71 | - [ ] 自动清除 Aria2 下载完成项目 (暂时不是很必要) 72 | - [ ] WebSocket 协议 (暂时不是很必要) 73 | - [ ] 多语种支持(老旧代码太多,暂时无法搞) 74 | 75 |
76 | 77 | ## License|许可协议 78 | PixivUserBatchDownload © Mapaler 2021 79 | 80 | > 此程序是免费软件。你可以将它根据“GNU通用公共许可证第三版(GPLv3)”重新分发和/或修改。 81 | 82 | * Aria2 操作对象代码来自 [ThunderLixianExporter](//github.com/binux/ThunderLixianExporter)。 83 | * Pixiv APP-API 分析灵感来自 [PixivPy](//github.com/upbit/pixivpy)。 84 | 85 | ## 友情链接 86 | **[![](https://raw.githubusercontent.com/xuejianxianzun/PixivBatchDownloader/master/static/icon/logo48.png)PixivBatchDownloader](//github.com/xuejianxianzun/PixivBatchDownloader)** 87 | 功能介绍: 88 | * 支持多种页面里的批量下载,可以设置多种筛选条件 89 | * 有一些辅助功能,如去除广告、快速收藏、看图模式等 90 | * 下载不依赖第三方工具 91 | * 支持多语言 -------------------------------------------------------------------------------- /docs/images/preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mapaler/PixivUserBatchDownload/a11e346468a6592425f2abbcd8a4531ed45004fe/docs/images/preview.png -------------------------------------------------------------------------------- /docs/images/structure.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mapaler/PixivUserBatchDownload/a11e346468a6592425f2abbcd8a4531ed45004fe/docs/images/structure.jpg --------------------------------------------------------------------------------