This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Run any SwiftUI view as a Mac app. | |
| import Cocoa | |
| import SwiftUI | |
| import Foundation | |
| public extension Date | |
| { | |
| static let shortDateFormatter: DateFormatter = { | |
| let dateFormatter = DateFormatter() | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Login to https://fancy.parivahan.gov.in/fancy/faces/public/login.xhtml and navigate to Number Selection tab, select RTO and run these on console | |
| // Update START, END, RTO, STATE_CODE, COOKIE & SERVER_TOKEN | |
| // get the Cookie & ViewState from Network request(or with Postman Interceptor) | |
| // Find open status from here | |
| // https://fancy.parivahan.gov.in/fancy/faces/public/seriesOpenStatus.xhtml | |
| (async () => { | |
| const START = 6198; | |
| const END = 7196; | |
| const RTO = 03; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Unlike all the liked tweets in bulk | |
| const run = async () => { | |
| const xpath = "//div[contains(text(),' Likes')]"; | |
| const likesCountElmt = document.evaluate( | |
| xpath, | |
| document, | |
| null, | |
| XPathResult.FIRST_ORDERED_NODE_TYPE, | |
| null | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | (() => { | |
| var scriptUrl = "https://pastebin.com/raw/TgnYsdGh"; | |
| var scriptToInject = document.createElement("script"); | |
| var scriptSrcURL = 'https://whateverorigin.org/get?url=' + encodeURIComponent(scriptUrl); | |
| fetch(scriptSrcURL).then((res) => res.json()).then((response) => { | |
| scriptToInject.append(response.contents); | |
| document.body.append(scriptToInject); | |
| }) | |
| })(); | 
OlderNewer