LOFTER

LOFTER##

分享者: boavine (5191)发布时间: 05/03 18:48

by:[email protected] 
在源变量处设置想看的标签|作者id
可在分类中填加喜欢的作者:
用户名::https://rsshub.rssforever.com/lofter/user/用户ID
二维码导入
{
    "articleStyle": 2,
    "contentWhitelist": "",
    "customOrder": 0,
    "enableJs": true,
    "enabled": true,
    "enabledCookieJar": false,
    "header": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/114.0.0.0 Safari\/537.36 Edg\/114.0.1788.0",
    "injectJs": "\n \nif (\/.+post.+\/.test(window.location.href) ) {\n\nA = document.createElement(\"div\");\ndemo = document.createElement(\"div\");\nA.href = window.location.href;\t\nA.innerHTML = `<button style=\"outline:none; position:fixed; top:1%; left:2%; z-index:999; border-radius:5px; color:#166188;background:#fff;padding:4px;border:1px solid #000\"onclick=\"display()\";\"><b>简化界面<\/b><\/button>`;\ndocument.body.appendChild(A);\n\nfunction display() {\n\/\/原网页\t\n\tywy=\"<p>点击跳转:<a href=\"+window.location.href+\">查看原网页<\/a><\/p>\";\n\n\/\/空行\n\tkh=\"<p>&nbsp;<\/p>\";\n\n\/\/作者\n\t\n\tif(document.getElementsByTagName(\"h1\").length!=0)        {zz=document.querySelector(\"h1\").textContent;}\n\telse if(document.getElementsByClassName(\"m-nick\").length!=0) \n{zz=document.querySelector(\".m-nick\").textContent;}\n\telse if(document.getElementsByClassName(\"name\").length!=0) {zz=document.querySelector(\".name\").textContent;}\n\telse zz=\"未知\";\nlz=`<div id=\"lz\">作者:`+zz+`<\/div>`;\n\n\/\/内容\n\tif(document.getElementsByClassName(\"content\").length!=0) x=document.getElementsByClassName(\"content\");\n\telse if(document.getElementsByClassName(\"ct\").length!=0) x=document.getElementsByClassName(\"ct\");\n\telse if(document.getElementsByClassName(\"cont\").length!=0) x=document.getElementsByClassName(\"cont\");\n\telse if(document.getElementsByClassName(\"photo\").length!=0) x=document.getElementsByClassName(\"photo\");\t\t\n\telse if(document.getElementsByClassName(\"innercnt\").length!=0) x=document.getElementsByClassName(\"innercnt\");\t\t\n\tnr=`<div class=\"nr\">`+x[0].innerHTML+`<\/div>`;\n\t\n\/\/标签\n\ty=document.getElementsByClassName(\"tag\");\n\tif(y.length==0) y=document.getElementsByClassName(\"tags\");\n\tbqi=``;\n\tvar i;for (i = 0; i < y.length; i++) {t=y[i].textContent.replace(\/$\/,\" \");t=t.replace(\/●\/g,\"#\");t=t.replace(\/\\#\/g,\" #\");t=t.replace(\/标签:\/,\"&nbsp;\");bqi+=t;}\n\tbq=`<p>[标签]`+bqi+`<\/p>`\n\t\n\/\/翻页\n\/*\n\tfyp=`<a href=`+document.querySelector(\".prev\")+`>< 上一篇<\/a>`;\n\tfyn=`<a href=`+document.querySelector(\".next\")+`>下一篇 ><\/a>`;\n\tfy=`<p>`+fyp+`&nbsp;&nbsp;`+fyn+`<\/p>`;\n*\/ \n    fyp=document.querySelector(\".prev\");fyn=document.querySelector(\".next\");;\n\tif(document.getElementsByClassName(\"prev active\").length!=0) \n\t\tfyp=document.querySelector(\".prev\").querySelector(\"a\");\n\tif(document.getElementsByClassName(\"next active\").length!=0) \n\t\tfyn=document.querySelector(\".next\").querySelector(\"a\");\n\tif(document.getElementsByClassName(\"pre\").length+document.getElementsByClassName(\"nxt\").length!=0)  \n\t{fyp=document.querySelector;fyn=document.querySelector(\".nxt\");}\n\tif(document.getElementById(\"__next_permalink__\"))  \n\tfyn=document.getElementById(\"__next_permalink__\");\n\tif(document.getElementById(\"__prev_permalink__\"))  \n\tfyp=document.getElementById(\"__prev_permalink__\");\n\tfy=`<p><a href=`+fyp+`>< 上一篇<\/a>&nbsp;&nbsp;<a href=`+fyn+`>下一篇 ><\/a><\/p>`;\n\n\t\n\/\/热度\n  y=document.getElementsByClassName(\"nctitle\");\n\trei=``;\n\tvar i;for (i = 0; i < y.length; i++) {t=y[i].textContent;rei=rei+' '+t;}\n\tre=`<p>`+rei+`<\/p>`\n\n\/\/\t评论\n\tcomment=document.getElementById(\"comment_frame\").src;\n\tpl=\"<p>点击跳转:<a href=\"+comment+\">评论链接<\/a><\/p>\";\n\n\/\/替换body\n\tnewbody=`<div id=\"bgw\">`+kh+ywy+lz+nr+bq+fy+re+pl+ywy+`<\/div>`;\n\n\/\/修改head\nbttitle=document.getElementsByTagName('title')[0]\n\tdocument.getElementsByTagName('head')[0].innerHTML=`<head lang=\"zh\">\n<meta charset=\"UTF-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, user-scalable=no\">`+bttitle;\n\n\/\/ccs\n        document.body.innerHTML=newbody;\n \n         im=document.images.length;\n        for (i = 0; i < im; i++) {document.images[i].style.width=\"100%\";}\n         vm=document.getElementsByTagName(\"video\").length;\n        for (i = 0; i < vm; i++) {document.getElementsByTagName(\"video\")[i].style.width=\"100%\";}\n\n        document.body.style.fontSize=\"16px\";            \n        document.body.style.width=\"96%\";\n        document.body.style.marginLeft=\"2%\";\n        document.getElementById(\"bgw\").style.cssText=\"color:black;background-color: White;width:100%;\"\n        document.body.style.background=\" \";\n        document.body.style.backgroundColor = \"white\"; \n\n        ps=document.getElementsByTagName(\"p\");\n        for (t = 0; t < ps.length; t++) ps[t].style.cssText=\"line-height: 1.6;font-size:16px\";\n        h2n=document.getElementsByTagName(\"h2\");\n        for (i = 0; i < h2n.length; i++) {\n        h2a=h2n[i].getElementsByTagName(\"a\");\n        for (t = 0; t < h2a.length; t++) h2a[t].style.cssText=\"text-decoration: none;text-align: left;font-size: 24px;font-weight:bold;line-height:24px;text-shadow: 3px 3px 3px #BCBCBC;color: Black;\"\n        h2n[i].style.cssText=\"padding: 3px 5px 1px;border-radius: 0px 10px 0px;min-height: 24px;border: 2px solid #BCBCBC;\"\n        }\n        document.getElementById(\"lz\").style.cssText=\"line-height: 1.6;text-align: right;\"\n\n}\n\n}\n",
    "lastUpdateTime": 0,
    "loadWithBaseUrl": true,
    "loginCheckJs": "",
    "loginUrl": "https:\/\/www.lofter.com",
    "ruleArticles": "item\n<js>  \nvar source=source.getVariable();\nif(source==0&&result==0)  java.longToast(\"当前未输入搜索内容!\");\nelse result;\n<\/js>",
    "ruleContent": "<js>\ncomment=java.getString(\"id.comment_frame@html\");\ncm=\"https:\/\/\"+comment.match(\/www.*?(?=\\\")\/);\njava.put('cm',cm);\n<\/js>\n\n\n<!doctype html>\n<html>\n<head lang=\"zh\">\n<meta charset=\"UTF-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, user-scalable=no\">\n<title>{{@@title@text}}<\/title>\n<\/head>\n\n<body>\n<p>&nbsp;<\/p>\n<p>点击跳转:<a href={{baseUrl}}>查看原网页<\/a><\/p>\n<div class=\"lz\">作者:{{@@h1.0@text||class.m-nick@text||class.name.0@text}}<\/div>\n<div class=\"nr\">\n{{@@class.content.0@html||class.ct.0@html||class.cont.0@html||class.innercnt.0@html||class.box photo.0@html}}\n<\/div>\n<p>[标签]{{@@.tags@text||.tag@text##●|\\#|标签:|^## #}}<\/p>\n<p><a href={{@@.prev@href}}{{@@.pre@href}}><上一篇<\/a>  <a href={{@@.nxt@href}}{{@@.next@href}}>下一篇 ><\/a><\/p>\n<p>{{@@.nctitle@text}}<\/p>\n<p>点击跳转:<a href={{java.get('cm')}}>评论链接<\/a><\/p>\n<p>点击跳转:<a href={{baseUrl}}>查看原网页<\/a><\/p>\n<\/body>\n<\/html>",
    "ruleDescription": "",
    "ruleImage": "description@text\n<js>\nif(result.match(\/img\/)) result=result.replace(\/.+(http.+?)\\?imageView.+\/,\"$1\");\nelse result=\"\";\n<\/js>",
    "ruleLink": "link@text",
    "ruleNextPage": "",
    "rulePubDate": "pubDate@text&&category@text##\\n## #",
    "ruleTitle": "{{@@title@text}} --by:{{@@author@text}}",
    "singleUrl": false,
    "sortUrl": "最新::https:\/\/rsshub.rssforever.com\/lofter\/tag\/{{source.getVariable()}}\/new\n日榜::https:\/\/rsshub.rssforever.com\/lofter\/tag\/{{source.getVariable()}}\/date\n周榜::https:\/\/rsshub.rssforever.com\/lofter\/tag\/{{source.getVariable()}}\/week\n月榜::https:\/\/rsshub.rssforever.com\/lofter\/tag\/{{source.getVariable()}}\/month\n总榜::https:\/\/rsshub.rssforever.com\/lofter\/tag\/{{source.getVariable()}}\/total\n用户::https:\/\/rsshub.rssforever.com\/lofter\/user\/{{source.getVariable()}}",
    "sourceComment": "by:[email protected] \n在源变量处设置想看的标签|作者id\n可在分类中填加喜欢的作者:\n用户名::https:\/\/rsshub.rssforever.com\/lofter\/user\/用户ID",
    "sourceGroup": "LOFTER",
    "sourceIcon": "https:\/\/img.yoti.cn\/uploadimg\/ico\/2021\/0126\/1611654381730956.png",
    "sourceName": "LOFTER ",
    "sourceUrl": "LOFTER##",
    "style": "h2 {\n\tpadding: 0px 5px;\n        border-radius: 0px 10px 0px;\n\tborder: 2px solid #BCBCBC;\n\t}\nh2 a{\n\ttext-decoration: none;\n\ttext-align: left;\n\ttext-shadow: 3px 3px 3px #BCBCBC;\n\t\/\/background-color: #C3DBC9;\n\tcolor: Black;\n\t}\ndiv p{\n\tline-height: 1.6;\n\t}\n.g-mnc,.main,.box,.ct,img,.pic img,video{\n\twidth:100%;\n\ttext-indent:0;\n\t}\nhtml{\n        margin-left: 2%;\n\tmargin-right: 2%;\n\t\n}\n.lz {\n\tline-height: 1.6;\n        text-align: right;\n\t}\n",
    "variableComment": "在这里填写标签名\/用户id,保存,刷新分类,下拉刷新。\n记得刷新分类!记得刷新分类!记得刷新分类!\n搜用户搜id!不是用户名!"
}
站长推荐
广告