Permalink
Browse files

figured out livejournal weirdness

  • Loading branch information...
1 parent 019ed14 commit 8db1be3233f8b67ee797c2d375613f98dd393d19 @ambtus committed Mar 22, 2012
Showing with 3 additions and 4 deletions.
  1. +2 −3 extras/my_websites.example
  2. +1 −1 features/single_page.feature
@@ -14,11 +14,10 @@ module MyWebsites
def self.geturl(url)
case url
when /ejournal/, /dreamwidth/
- url = url + "?mode=reply" unless url.match("thread")
if url.match("#comments")
- url.gsub("#comments", "&format=light#comments")
+ url.gsub("#comments", "?format=light#comments")
else
- url + "&format=light"
+ url + "?format=light"
end
when /archiveofourown/
url + "?view_adult=true&view_full_work=true&style=light"
@@ -102,7 +102,7 @@ Feature: single-part pages
And I should not see "Page created"
Scenario: download livejournal adult content
- Given a titled page exists with url: "http://sidra.livejournal.com/3265.html#cutid1"
+ Given a titled page exists with url: "http://sidra.livejournal.com/3265.html"
When I go to the page's page
And I follow "HTML" within ".title"
Then I should not see "Adult Content"

0 comments on commit 8db1be3

Please sign in to comment.